in reply to how to read nth line from file

The easiest solution is probably Tie::File. It's been a standard part of the Perl distribution for a few years.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg