akm2 has asked for the wisdom of the Perl Monks concerning the following question:
From what I can tell $HTMLLine =~ s/\$([a-zA-Z_0-9\[\]{}']+)/${$1}/g; was a cheap attempt to display $HTMLLine content instead of a $HTMLLine name and make it work with scalars, scalar arrays and hashes.
But when I try this little piece of code and print $HTMLLine I get a line is blank.
Any ideas why it doesnt work?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to understand some body's old code.
by arturo (Vicar) on Feb 27, 2001 at 20:35 UTC | |
|
(tye)Re: Trying to understand some body's old code.
by tye (Sage) on Feb 27, 2001 at 21:36 UTC | |
|
Re: Trying to understand some body's old code.
by azatoth (Curate) on Feb 27, 2001 at 20:29 UTC | |
|
Re: Trying to understand some body's old code.
by eg (Friar) on Feb 27, 2001 at 20:38 UTC |