On 8/11/06, Beginner <[EMAIL PROTECTED]> wrote:
But once I have found my tag I would like to use sysseek and sysread to slurp up some data. Is there some way I can find out where my position in the file is once $_ has matched?
You probably want seek() and read(), instead of sysseek() and sysread(). (The "sys" variants are very low-level.) Then you would want tell() to identify the position in the file. You may need to subtract a few bytes if you need to locate the position of a string that has already been read. It's not the way most Perl programmers would solve the problem, but it may work for you. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>