On Aug 10, 6:26 am, [EMAIL PROTECTED] wrote: > Morning All, > > I've a relatively minor problem that has been giving me a headache for > several days. I know there are many other ways to do this, however I'd > like to know why this isn't working. The snippet of code in question > is as follows > > <snip> > if($ARGV[2] =~ /port/i && $ARGV[3] =~ /nick/i) > { > <snip>
Well, on a hunch I'd say that snippet returns false because either $ARGV[2] doesn't match /port/i, or because $ARGV[3] doesn't match / nick/i. If you want more help than that, perhaps you should post a short-but- complete script that demonstrates what you're doing. Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/