[ic] Embedding Perl Problem

Doug Alcorn doug@lathi.net
04 Dec 2000 19:35:57 -0500

"Dallas Vogels" <dvogels@forestind.com> writes:

> 	------------------------------------------
> 	[perl]
> 		$Config->{PriceField} = 'can_price';
> 	[perl]
> 	------------------------------------------
> 	The code sits in a HTML page however the text 'can_price' (with out the
> single quotes) is output on the HTML page.  How do I stop this from
> happening?

The [perl] tag outputs the page the result of the last command
executed inside the tags (much like the return value of a perl
subroutine).  I think common practice is to 'return "";' as the last
part of your [perl] tag if you don't want any output in your page.
 (__)  Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
 oo /  Unix Hacker
 |_/   "It's too late for paradise" (at least in this life)