in reply to Re: I need a title - sucka! :-)
in thread I need a title - sucka! :-)

No offense, but i stopped using HERE DOCS moons ago, you should too.

Hi jeffa,

What have you got against here docs? Or is this just something against here docs to generate (X)HTML?

--
Allolex

Perl and Linguistics
http://www.wall.org/~larry/keynote/keynote.html

Replies are listed 'Best First'.
3Re: I need a title - sucka! :-)
by jeffa (Bishop) on Nov 21, 2003 at 22:04 UTC

    HERE DOCS were very wonderful before i started using HTML::Template, Text::Template, and the uber Template. Since then, i discovered that HERE DOCS tended to clutter my code, besides ... being able to seperate out other languages from your Perl scripts is good. eduardo recently introduced me to Class::Phrasebook::SQL which allows you to abstract SQL code. It may seem like more work at first, but you get better and faster, and soon you find that HERE DOCS are an unattractive, cludgy solution. This doesn't mean that i won't ever use them again, it just means that i found something better for me.

    (P.S. you can witness some of my older CGI HERE DOC ways over at my Lingua::Ispell review)

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)