On Fri, Apr 12, 2002 at 05:52:59AM +0200, Gerald Richter wrote:
> > I've got an embperl (1.3.4) page that dumps a blob from a database with
> > an appropriate content type, and I'm finding I'm getting trailing
> > whitespace when I save the output to disk. 
> 
> You have to turn of escaping
> 
> > For binaries this can be a
> > problem.
> > 
> > Simple example - a file containing:
> > 
> Add
> 
> [- $escmode = 0 -]
> 
> >   [+ 'abc' +]
> > 
> 
> This will turn of escaping and also remove the trailing whiltespace

Thanks - I had a 'local $escmode = 0' in the original, which I guess
does the unescaping but not the whitespace munging due to scope. The 
escaping gets rid of the final \r\n, which is what I was after.

I've gone with the [- print OUT 'abc' -] version, since the [+ 'abc' +]
one includes the final eol from the epl file (if it's there).

Cheers,
Gavin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to