in reply to Re: Pattern Match/Trim Variables.
in thread Pattern Match/Trim Variables.
Is that correct??if ($line =~ /\d\d\/\d\d\/\d\d\d\d \d\d:\d\d:\d\d.\d\d\d/) { $line =~ s#^(\d\d/\d\d/\d\d\d\d \d\d:\d\d:\d\d\.\d\d\d$#$1#; }
perl -le '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat +!\n"; } else { print "Thats a dog\n"; }'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Pattern Match/Trim Variables.
by Coruscate (Sexton) on Feb 17, 2003 at 20:44 UTC | |
|
Re: Re: Re: Pattern Match/Trim Variables.
by steves (Curate) on Feb 17, 2003 at 22:18 UTC |