in reply to Using IF and OR, I'm sure there is a better way
Here is an another possible way...
For single numeric values:
print $& if ($variable=~/[123]/);For two or more numeric values:
print $& if ($variable=~/[1][0]+/);Also, take a look at perlrequick
Regards
Franklin
Don't put off till tomorrow, what you can do today.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using IF and OR, I'm sure there is a better way
by l3v3l (Monk) on Dec 15, 2005 at 22:02 UTC | |
|
Re^2: Using IF and OR, I'm sure there is a better way
by ikegami (Patriarch) on Dec 21, 2005 at 18:05 UTC |