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.
In reply to Re: Using IF and OR, I'm sure there is a better way
by l.frankline
in thread Using IF and OR, I'm sure there is a better way
by cosmicperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |