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
--

Reply via email to