lgordoncurtis has asked for the wisdom of the Perl Monks concerning the following question:
And then I want to find the first ; or / character in the line, and reset the position to that. I can find the index in $line of the character I'm looking for, but adding that to $mypos doesn't do what I thought it would do. Is there a way to convert that index into something I can add to $mypos and then use ->setpos($mypos)? Appreciate any help.$mypos = $myhandle->getpos(); $line = $myhandle->getline();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FileHandle setpos function
by thundergnat (Deacon) on Jun 02, 2005 at 21:29 UTC | |
|
Re: FileHandle setpos function
by fishbot_v2 (Chaplain) on Jun 02, 2005 at 21:42 UTC |