On Aug 19, 2013, at 7:27 PM, beginners-digest-h...@perl.org wrote:
>
> beginners Digest 20 Aug 2013 00:27:53 - Issue 4569
>
> Topics (messages 123372 through 123374):
>
> Re: Fetching File Creation Date
> 123372 by: John Aten
> 123373 by: Shawn H Corey
> 123374 by: Jim Gi
On 21/08/2013 18:32, Natxo Asenjo wrote:
hi,
thanks all for your advice. I have just used one of your suggested
regex to accomplish this task:
if ( $text =~ /.*(critical alarm.*?)\./i ) {
my $message = $1;
print $message, "\n";
}
This captures everything starting with critical alarm
hi,
yes, I know how to use the get() method but it does not work with this
interface, it keeps rederecting me (status code 303, see other) to the
login form, even when using cookies, even after logging in. Very
irritating.
So this just gets the job done and I get on with my life and work.
--
Groe
Can you use LWP::Simple?
use LWP::Simple;
my $content = get("http://www.google.com/";);
--
Matthew Kunzman
Software Engineer
Boise, ID USA
Email: matt_...@rocketmail.com
Website: http://www.mattkunzman.com
LinkedIn: http://www.linkedin.com/pub/matthew-kunzman/b/5ba/94a
-
hi,
thanks all for your advice. I have just used one of your suggested
regex to accomplish this task:
if ( $text =~ /.*(critical alarm.*?)\./i ) {
my $message = $1;
print $message, "\n";
}
This captures everything starting with critical alarm until it finds a
dot (non greedy).
I agree w