> > 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
Another hunch looking at your syntax, ideally you should be using the lesser precedence operator 'and' instead of the higher precedence operator '&&'. Yes plz show the command line string. :) if($ARGV[2] =~ /port/i and $ARGV[3] =~ /nick/i) ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/