I've a simple example here, perhaps somebody could explain the difference, 'cos I'm at a loss to...
perl -e '$a="MIN.(NERR_VOL2)"; $b="$a" ; $x = ( qq/$a/ =~ qq/$b/ ) ; p +rint "$a == $b ? $x \n" ;'
>>> gives ;
MIN.(NERR_VOL2) == MIN.(NERR_VOL2) ?BUT...
perl -e '$a="MIN.(NERR_VOL2)"; $b="$a" ; $x = ( qq/$a/ eq qq/$b/ ) ; p +rint "$a == $b ? $x \n" ;'
>>> gives ;
MIN.(NERR_VOL2) == MIN.(NERR_VOL2) ? 1Why does =~ fail to match but eq does match ?
In reply to Matching quoted variables. Cant make it work.. by johntweed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |