in reply to Remarks

I read another solution to this by Tom Christiansen in the Perl6 language discussion:
sub comment($) { } comment <<"END OF FIRST COMMENT"; asdf asdf asdf asdf asdf END OF FIRST COMMENT
The ($) prototype means that comment expects to be passed a scalar, e.g. the result of the "HERE" document (everthing between the <<"END OF FIRST COMMENT" and the END OF FIRST COMMENT markers).

Cheerio!
Osfameron

Replies are listed 'Best First'.
RE: RE: Remarks
by tilly (Archbishop) on Aug 07, 2000 at 03:18 UTC
    It is amusing to see Tom Christiansen not taking his own IMHO excellent advice. For those who do not want to learn exactly what Perl's prototypes are, how to use them, what they can do, and what the problems with them are, the one line summary is that, "Prototypes were a misfeature of the day."