Somu wrote:
why wont the following work?
$q = shift;
$p = "pass";
if ( $q =~ m/$p/i ) { print 'match' }
But it works on changing the $q and $p places..
This will output 'match' if the string in $q contains the string 'pass' anywhere within it, in either (or mixed) case. What do you think is in in $q? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
