want to check a field for content...it should contain only numeric values like 12345.67 or 0 or 0.00 or -123.78 here is code I am struggling with
while ( $amount2 =~ / / ){ $amount2 =~ s/ //g; } if ( ($amount2) =~ /_(\d+)\./) { print BAD_OUTPUT "Amount field cannot contain alpha characters :"; + print BAD_OUTPUT $_,"\n"; next; }
In reply to only want numerics in field by newby2perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |