in reply to move down 2 lines in file?

I would just do something like: open FILE, "<", "try.dt" or die $!; while (<FILE>) { next if $. < 2; print $_; } And not think twice about it; is there something wrong with that?

Replies are listed 'Best First'.
Re^2: move down 2 lines in file?
by b17m4p (Initiate) on Jul 12, 2008 at 05:29 UTC
    Sorry new here
    open FILE, "<", "try.dt" or die $!; while (<FILE>) { next if $. <= 2; print $_; }