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: Problems with ;'s
by dvergin (Monsignor) on Nov 09, 2001 at 22:05 UTC | |
by LostS (Friar) on Nov 09, 2001 at 22:11 UTC | |
by tye (Sage) on Nov 09, 2001 at 22:17 UTC | |
by broquaint (Abbot) on Nov 09, 2001 at 22:47 UTC | |
by LostS (Friar) on Nov 10, 2001 at 00:12 UTC | |
by bbfu (Curate) on Nov 09, 2001 at 22:20 UTC |