in reply to Re: html
in thread printing html entities

The second part is not correct. <PRE></PRE> will still interpret the <iostream.h>

Use a <XMP> block or since this is permonks:
$code =~ s/>/&gt;/g; $code =~ s/</&lt;/g;

Replies are listed 'Best First'.
RE: RE: Re: html
by merlyn (Sage) on May 23, 2000 at 19:28 UTC
    Or, just use HTML::Entities from the LWP library. You do have that installed, don't you?