If you want to check that split returns the number of fields you expect, just check it:
my @split_line = split(m"\|",$line); if (@split_line != 4) { warn "something gang aft"; } else { print "valid data!"; }
In reply to Re: Re: Re: Input validation
by ysth
in thread Input validation
by pacman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |