this one print nothing ...perl -e 'print "Ok\n" if( "foo\n" eq "foo" )'
but this one print Ok !perl -e 'print "Ok\n" if( "foo\n" =~ /^foo$/ )'
In reply to Re: Weird eq behaviour
by choocroot
in thread Weird eq behaviour
by Cine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |