I'd like to know how to manage position in a file.
Ex : say I've this file :
Suppose I use IN and OUT as filehandles for input and output.
I want to read my file till BEGIN then print all lines till END
then browse till BEGIN2 and then print exactly the 3 following lines
then stop browsing
What's the most efficient and "perl style" manner to do that???
How can I modify the position of <IN> in my file??