http://www.perlmonks.org?node_id=1058321


in reply to printing output on text file from file - perl

This looks more like 3 tables in a database, is this the case?

Me I suggest you take a look at DBD::CSV