> > (1) I have some fields that contain multi-line data (i.e. with
> > embedded '\n'
>
> You need to escape the html tag:
> 
> [+ $foo =~ s/\n/\\\\<br\\>/g; $foo +]

This works fine now, thanks.

> > This is what I was doing (more or less):
> >
> >  [$ sub error $]
> >  There was an error: [+ $_[0] +]
> >  [- Apache::exit(0); -]
> >  [$ endsub $]
> >
> >  ...
> >
> >  [-
> >    do_something() || error("Can't do_something");
> >  -]
> >
> 
> 
> > That didn't work.  However, using a [! !] block for the subroutine
> > containing the exit() call *did* work:
> >
> >  [! sub error { disp_error($_[0]); Apache::exit(0); } !]
> >  [$ sub disp_error $]
> >  There was an error: [+ $_[0] +]
> >  [$ endsub $]
> >
> 
> This is strange, both should do the same...

This is very very strange - all of my problems regarding exit() have now
completely vanished.  I tried the above examples again, and they now work. I
wonder if there was something strange in my configuration that triggered it.
If it happens again, I'll try and find what caused it.

> If you, after solving your problem, have any ideas how to write it more
> clear, please send me a patch

It's fine now it's agreeing with what I see before my eyes !

Thanks -

Jim

-- 
 Jim Peters         /             __   |  \              Aguazul
                   /   /| /| )| /| / )||   \
 jim@aguazul.      \  (_|(_|(_|(_| )(_|I   /        www.aguazul.
  demon.co.uk       \    ._)     _/       /          demon.co.uk

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

Reply via email to