> I am looking at a way of reading a line doing a regex to find the > specific line then pick out the line, sudo code would be some thing > like the following: > > read in line > check regex > > if regex is correct > { jump 10 lines > print the output > > } > > any ideas on jumping the 10 lines, how do I ignore the lines in the > file, and know I'm going the right distance ? > > Thanks > Pat
I don't know how big your file is but you can try Tie::File...it's a core module...it works for big files, you can do regex, easy to go/ treat a particular line, etc... http://perldoc.perl.org/Tie/File.html my two cents, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/