in reply to Admin-ing a file?

Can you provide a sample data from your .dat file? Meanwhile you can read the manual for split and documentation for CGI.pm module.

Leonid Mamtchenkov