On Thu, Aug 24, 2000 at 05:24:14PM -0700, Peter Scott wrote:
> At 05:41 PM 8/24/00 -0600, Tom Christiansen wrote:
> >But you don't need that when you can and possibly should just write this:
> >
> >      print <<"    EOF" =~ /^\s*\| ?(.*\n)/g;
>                 ^^^^
> Others may be focussing on the problem of stripping off leading white space 
> from the here doc contents, but I don't so much care about that because I 
> think the Ram recipes are fine; I'm more concerned about being able to 
> indent the terminator and not have to count spaces in the <<.

I was sorta going under the assumption that <<< would cause leading and
trailing whitespace to be ignored (not stripped) when looking for the
end-of-here-doc indicator.  Because whitespace is ignored, I was then
proposing some new syntax for stripping whatever one likes from the contents
of the here-doc.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Reply via email to