$output = "..............."; while (local ($_) = $output =~ /(.*\n?)/) { ... }
This is assuming you haven't modified $/ (or $*).
Abigail
In reply to Re: Equivalent code for input line operator on a scalar?
by Abigail-II
in thread Equivalent code for input line operator on a scalar?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |