in reply to && and ne

Instead of all the && and ne's, try using some regexs like so:
if ($myrowidarray[$myint] !~ /(del|cal|foo)/) { }

Replies are listed 'Best First'.
Re: Re: && and ne
by arturo (Vicar) on Feb 09, 2001 at 02:41 UTC

    That's a nice thought. Just to add, if you absolutely must test for equality, put in the relevant anchors:

    if ($myrowidarray[$myint] !~ /^(del|cal|foo)$/) {}

    Philosophy can be made out of anything. Or less -- Jerry A. Fodor