in reply to move down 2 lines in file?
Hmm, not sure about this method, but it works in theory.
open (file.....) while (<FILE>) { $. = 2; # $. holds the number of the last read line .....
I am not sure if it should be the one I posted above or next if $. == 1 or if $. == 2 though. I have no time to check right now. (Also, I am not sure if it starts counting at 0 or 1. Change the numbers accordingly
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: move down 2 lines in file?
by halley (Prior) on Jul 11, 2008 at 18:46 UTC | |
by Lawliet (Curate) on Jul 11, 2008 at 19:30 UTC | |
by johngg (Canon) on Jul 11, 2008 at 22:13 UTC |