develooper Front page | perl.perl6.language | Postings from August 2006

Heredoc issue in pugs.

Thread Next
From:
Yiyi Hu
Date:
August 22, 2006 11:16
Subject:
Heredoc issue in pugs.
Message ID:
f469f8de0608221116p62b71a7dode090d7478e13e61@mail.gmail.com
#!/usr/bin/env pugs

my $a = q:t /END/
test
END;

$a.perl.say;

Above example works ok in pugs, But the problem is.
From S02

Heredocs are no longer written with <<, but with an adverb on any
other quote construct:

    print qq:to/END/;
        Give $amount to the man behind curtain number $curtain.
        END

Which is correct?

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