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
In reply to Equivalent code for input line operator on a scalar? by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |