sub check { my $value=""; if ($_[0]=~ m/\d+/) { $value=$_[0]; print qq~$_[0] is numeric\n~; } el +se { $value=""; print qq~$_[0] is not numeric\n~; } return($value); } my $in=0815; my $out=&check($in); # have phun!
In reply to Re: validate if output of command is numeric or not
by Anonymous Monk
in thread validate if output of command is numeric or not
by kaka_2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |