in reply to Extending the Perl Syntax on PERL + HTML envirionments.

That looks like an ugly way to do heredocs. If you want to meddle with the syntax, do what Perl6 does and allow heredocs and their delimiters to be indented. No need to add new syntax when there's existing one that could be extended to do what you want in a cleaner fashion.

But anyway, you should be using an existing templating system.

Makeshifts last the longest.

  • Comment on Re: Extending the Perl Syntax on PERL + HTML envirionments.

Replies are listed 'Best First'.
Re^2: Extending the Perl Syntax on PERL + HTML envirionments.
by zby (Vicar) on Aug 06, 2004 at 09:05 UTC
    It is different from heredocs in that it gets rid of the end marker, and it is better suited for medium lenght strings. For me it is competing with the qq rather then with heredocs.