in reply to Regular expression matching or eq, which is faster?
$ $ perl -wE 'say "ouch" if "foo\n" =~ /^foo$/' ouch $ perl -wE 'say "ouch" if "foo\n" eq "foo"' $ # no output [download]
So they are not the same... which one do you want?