in reply to Re: here doc and there doc: what's the difference? why does everyone seem to hate them?
in thread here doc and there doc: what's the difference? why does everyone seem to hate them?

Hmm... your reply is mainly about the here docs, where as my original post was mainly about there (here, there) docs.
That's why you don't understood my question :)

But I already got the answer (see below)

update: or maybe not... help! It's getting real confusing now! :)
  • Comment on Re^2: here doc and there doc: what's the difference? why does everyone seem to hate them?

Replies are listed 'Best First'.
Re^3: here doc and there doc: what's the difference? why does everyone seem to hate them?
by PodMaster (Abbot) on Jun 19, 2004 at 14:57 UTC
    I see (on the points I missed). Well, I don't like source filters The following works for me (:
    print <<' INDENTED_'; blah blah blah blah bla INDENTED_

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re^3: here doc and there doc: what's the difference? why does everyone seem to hate them?
by tye (Sage) on Jun 20, 2004 at 07:30 UTC

    FYI, the 'there docs' linked to in that node that has your "answer" have littlle to do with the 'there docs' in the poll.

    - tye        

      aw... what's the difference? :)

        In the poll, the difference between choices <<"here doc" and <<'there doc' is roughly the same as the difference between choices "doubles" and 'singles'.

        Note that I voted for (against) <<"here doc" because I dislike the way they break proper indentation, are broken by changing indentation, are broken by invisible spaces (trailing spaces are often not even indirectly visible, unlike other whitespace), and are rather inflexible (can only be closed after a newline which often leads to clumsly interpolation tricks like @{[...]}).

        But <<'there doc' has the virtue off being the only quoting mechanism in Perl that doesn't ever require \ to be escaped (the __END__ choice isn't really a quoting mechanism).

        - tye