NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node was taken out by the NodeReaper on Mar 06, 2015 at 21:59 UTC

Replies are listed 'Best First'.
Re: parse a file in perl
by marinersk (Priest) on Mar 06, 2015 at 21:50 UTC

    I'd use open, while, and close to get the data from the file. I'd use the the $var = <HANDLE>; technique to read the file (others here would disagree).

    I'd use the DBI module from CPAN to do the database stuff. When you get to this point, post some code and we can nudge you along, since this is likely your first time querying a database from Perl and that's often asking a bit much from a Perl newbie.

    I'd use open, foreach, and close to write the new data to the new file.