in reply to Re: Printing a dollar sign..
in thread Printing a dollar sign..
I fixed it by adding this to it:$_template_code =~ s/(\$[a-zA-Z0-9\{\'\}_]+)/ eval($1) /ge; # Switch a +ll the $variables... (This is the WHOLE html document, $_page_content + is in the main table for the main content. This will switch any vari +ables with the data.
adding the 'if $1' fixed it because the variable is undefined so it won't switch it.$_template_code =~ s/(\$[a-zA-Z0-9\{\'\}_]+)/ eval($1) /ge if $1; # Sw +itch all the $variables...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Printing a dollar sign..
by tachyon (Chancellor) on Aug 27, 2004 at 05:21 UTC |