in reply to Equivalent code for input line operator on a scalar?
$output = "..............."; while (local ($_) = $output =~ /(.*\n?)/) { ... }
This is assuming you haven't modified $/ (or $*).
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Equivalent code for input line operator on a scalar?
by Roy Johnson (Monsignor) on Feb 05, 2004 at 17:19 UTC |