in reply to Weird eq behaviour
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$/ )'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Weird eq behaviour
by Cine (Friar) on Jul 25, 2002 at 13:00 UTC | |
by choocroot (Friar) on Jul 25, 2002 at 13:18 UTC |