Shout me down if I've missed the point completely here.$IsNumber = '^\d+$'; ($rValue=~$IsNumber); # Returns 1 if the regex matches # Or this returns the numeric $rValue if it matches $IsNumber # else returns "" ($rValue=~$IsNumber && $rValue);
In reply to Re: double deference a variable
by Anonymous Monk
in thread double deference a variable
by coreywride
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |