in reply to Using IF and OR, I'm sure there is a better way
I'm new in Perl, so this may be completely non-sense, but it works :)$variable=1; if ($variable =~/[1,2,3]/) { print "Did it!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using IF and OR, I'm sure there is a better way
by parv (Parson) on Dec 16, 2005 at 16:33 UTC |