in reply to Parsing variable
<...> is the readline operator, which expects to read from a file handle, not a string. But you can open a file handle to a string:
open(CONTENT, "<", \$content) || die ... while (<CONTENT>) { # reads line by line from $content ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing variable
by Sterh (Novice) on Jan 18, 2011 at 01:55 UTC |