LostS has asked for the wisdom of the Perl Monks concerning the following question:
perl -e '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat! +\n"; } else { print "Thats a dog\n"; } print "\n";'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Grep Pattern Match
by BrowserUk (Patriarch) on Dec 27, 2002 at 15:01 UTC | |
by LostS (Friar) on Dec 27, 2002 at 15:26 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2002 at 15:33 UTC | |
by LostS (Friar) on Dec 27, 2002 at 15:45 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2002 at 16:00 UTC | |
| |
by LostS (Friar) on Dec 27, 2002 at 15:46 UTC | |
by diotalevi (Canon) on Dec 27, 2002 at 16:02 UTC | |
by BrowserUk (Patriarch) on Dec 27, 2002 at 16:17 UTC | |
by diotalevi (Canon) on Dec 27, 2002 at 16:21 UTC | |
| |
by LostS (Friar) on Dec 27, 2002 at 16:23 UTC |