in reply to Re: How do I backtrack while reading a file line-by-line?
in thread How do I backtrack while reading a file line-by-line?

Thanks.

I didn't know about the & form being deprecated, so i will get rid of that.

And &play_with($stuff) does indeed modify $stuff, so I guess I am doing the right thing there, although I can't take credit for doing it on purpose. ;)

Thanks for the info though.
Matt

  • Comment on Re^2: How do I backtrack while reading a file line-by-line?

Replies are listed 'Best First'.
Re^3: How do I backtrack while reading a file line-by-line?
by mdunnbass (Monk) on Oct 18, 2006 at 20:24 UTC
    Oh, heck.

    When I wrote the code block in the original post, the

    if($newline = /^>/) {
    was NOT deliberate. just a typo. In my actual code, it reads:
    if($newline =~ /^>/) {