in reply to RE: Re: Encode quotes except in HTML?
in thread Encode quotes except in HTML?

And if you want to be as efficient as possible, use:
read DATA, $str, -s DATA;
but that's not convienient for things like the above either. It's a laziness/efficiency tradeoff :)
Updated due to merlyn's comment below (oops).

Replies are listed 'Best First'.
RE: RE: RE: Re: Encode quotes except in HTML?
by tye (Sage) on Sep 19, 2000 at 00:00 UTC

    Though in this case, sysread was only 4% faster than "slurp" and read was 2% faster than sysread (which makes me suspicious that I can't trust the numbers to that level of accuracy). So the trade-off is a no-brainer for me. ;)

            - tye (but my friends call me "Tye")
RE: RE: RE: Re: Encode quotes except in HTML?
by merlyn (Sage) on Sep 18, 2000 at 23:43 UTC