in reply to Re: Shell v Perl
in thread Shell v Perl, here-doc as stdin

It's worthwhile to note that in your example, the quotes around EOF are optional. Also, that there can be no whitespace seperating the << from the ending token. It's very easy to accidentally get that wrong, e.g.
print << FOO; # WRONG!
print <<FOO; # right

Replies are listed 'Best First'.
Re^3: Shell v Perl (don't use unquoted heredoc markers)
by Aristotle (Chancellor) on Apr 13, 2003 at 17:08 UTC
    You can doesn't mean you should. Perl6 will do away with that, thankfully.

    Makeshifts last the longest.