Sterh has asked for the wisdom of the Perl Monks concerning the following question:
Hi , I have simple question . For some reason (maybe wrong keywords) I can't google how to parse variable. I have working code when I am trying to work with filehandle.
open(FILE, "out.html") || die "Can't open file: $!\n"; while (<FILE>)
But I do something wrong when I trying to do the same with variable, nevertheless variable has html content.
Please, help to resolve this dumb issue. Appreciated your help in advance. Thank you!
while (<$content>)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing variable
by Anonyrnous Monk (Hermit) on Jan 16, 2011 at 01:53 UTC | |
by Sterh (Novice) on Jan 18, 2011 at 01:55 UTC | |
|
Re: Parsing variable
by Anonymous Monk on Jan 16, 2011 at 01:55 UTC | |
|
Re: Parsing variable
by chrestomanci (Priest) on Jan 16, 2011 at 12:36 UTC | |
|
Re: Parsing variable
by ambrus (Abbot) on Jan 16, 2011 at 14:08 UTC | |
|
Re: Parsing variable
by oko1 (Deacon) on Jan 16, 2011 at 19:26 UTC |