in reply to Reading from a file
You might want to take a look at Tie::File.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg