in reply to string format validation
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.
|
|---|