nysus has asked for the wisdom of the Perl Monks concerning the following question:
The code above doesn't work. But is there a bit of perl code that would allow me to easily iterate over the scalar, line by line, as if it were a file?while (<$output>) { ... }
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Equivalent code for input line operator on a scalar?
by broquaint (Abbot) on Feb 05, 2004 at 16:41 UTC | |
|
Re: Equivalent code for input line operator on a scalar?
by Zaxo (Archbishop) on Feb 05, 2004 at 16:43 UTC | |
|
Re: Equivalent code for input line operator on a scalar?
by Abigail-II (Bishop) on Feb 05, 2004 at 16:58 UTC | |
by Roy Johnson (Monsignor) on Feb 05, 2004 at 17:19 UTC | |
|
Re: Equivalent code for input line operator on a scalar?
by Roy Johnson (Monsignor) on Feb 05, 2004 at 17:14 UTC | |
|
Re: Equivalent code for input line operator on a scalar?
by Plankton (Vicar) on Feb 05, 2004 at 16:47 UTC | |
|
Re: Equivalent code for input line operator on a scalar?
by Old_Gray_Bear (Bishop) on Feb 05, 2004 at 16:48 UTC |