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: Sorting a Hash
by Masem (Monsignor) on Oct 19, 2001 at 00:24 UTC | |
|
Re: Sorting a Hash
by dragonchild (Archbishop) on Oct 19, 2001 at 00:22 UTC | |
by jackdied (Monk) on Oct 19, 2001 at 01:54 UTC | |
|
as always, perldoc -q is your friend
by Fletch (Bishop) on Oct 19, 2001 at 07:00 UTC |