in reply to Trubs with HERE docs

If you really want the concluding HELP to indent nicely (and I am no stranger to aesthetic osbessions myself) then this should work:
sub help { print <<' HELP'; The help information goes here! HELP die(); }
Of course, your print text will still include the indents.

§ George Sherston

Replies are listed 'Best First'.
Re: Re: Trubs with HERE docs
by herveus (Prior) on Sep 05, 2001 at 16:56 UTC
    Howdy!

    ...although if you want to interpolate variables into your here document, you need to use " instead of ' around your termination string...

    In other words:

    print <<FOO; woof woof $woof FOO
    is equivalent to
    print <<"FOO"; woof woof $woof FOO
    not
    print <<'FOO'; woof woof $woof FOO
    I've wrestled that alligator myself (aesthetic obsessions and all). At this point, I've just given up on having the here terminator indented...

    yours,
    Michael