develooper Front page | perl.perl6.language | Postings from April 2005

Here documents as positional parameters to a function call

Thread Next
From:
gcomnz
Date:
April 11, 2005 17:36
Subject:
Here documents as positional parameters to a function call
Message ID:
fb07797705041117364d084d8e@mail.gmail.com
Hey all, more pleac conversion questions:

I can't prove with the docs that a heredoc will continue to work as
positional params to a function call, particularly where it's not the
first param:

die "Couldn't send mail" unless send_mail <<qq:to/EOTEXT/, $target
    .... here doc here ...
    EOTEXT

Any comments?

Marcus

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About