in reply to Re^3: can I make my regexp match first pattern instead of last?
in thread can I make my regex match first pattern instead of last?

Using the string as a filehandle works fine. But now I get a runtime error that says "Can't use string ("") as a symbol ref while "strict refs" in use"

on this line of code:

open $ResultsHandle, '<', \$return;

So how can I use strict, which is required by Perl Best Practices, and process a multi line string one line at a time?

Thanks, Kurt

Replies are listed 'Best First'.
Re^5: can I make my regexp match first pattern instead of last?
by toolic (Bishop) on Sep 18, 2009 at 17:33 UTC
    Go here for the clear version of the question (and answers, too).