You can verify that by using regular expressions.
while (<>) { if (! m#^name:some_name,version:some_number,date:xx/xx/xx$#) { warn "Line $. doesn't fit\n" } }
Of course you need to change the RE to fit your needs.
In reply to Re: string format validation
by Skeeve
in thread string format validation
by gfarhat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |