On Thu, Aug 24, 2000 at 05:41:00PM -0600, Tom Christiansen wrote:
> But you don't need that when you can and possibly should just write this:
>
> print <<" EOF" =~ /^\s*\| ?(.*\n)/g;
> | Attention criminal slacker, we have yet
> | to receive payment for our legal services.
> |
> | Love and kisses
> |
> EOF
This works for print, but not for other functions where the string is in a
single argument, rather than a list.
printf(
<<<'EOF' =~ s/^\s*\| ?//g,
'[EMAIL PROTECTED]', "Michael Fowler", '400'
);
| To: %s
|
| Hello %s, your payment of $%.2f is late. Please pay now.
|
| Love and Kisses
EOF
Though, granted, the example is a little contrived.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
- Re: RFC 111 (v1) Whitespace and Here Docs Michael G Schwern
- Re: RFC 111 (v1) Whitespace and Here Docs Peter Scott
- Re: RFC 111 (v1) Whitespace and Here Docs Tom Christiansen
- Re: RFC 111 (v1) Whitespace and Here Docs Peter Scott
- Re: RFC 111 (v1) Whitespace and Here Docs Casey R. Tweten
- Re: RFC 111 (v1) Whitespace and Here Do... Tom Christiansen
- Re: RFC 111 (v1) Whitespace and Here Docs Michael Fowler
- Re: RFC 111 (v1) Whitespace and Here Docs Tom Christiansen
- Re: RFC 111 (v1) Whitespace and Here Docs Michael Fowler
- Re: RFC 111 (v1) Whitespace and Here Do... Tom Christiansen
- Re: RFC 111 (v1) Whitespace and He... Michael Fowler
- Re: RFC 111 (v1) Whitespace and Here Docs Peter Scott
- Re: RFC 111 (v1) Whitespace and Here Docs Michael Fowler
- Re: RFC 111 (v1) Whitespace and Here Docs Nathan Wiger
- Re: RFC 111 (v1) Whitespace and Here Docs Bart Lateur
- Re: RFC 111 (v1) Whitespace and Here Docs Richard Proctor
- Re: RFC 111 (v1) Whitespace and Here Docs Tom Christiansen
