Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: The plural of "athlete's foot" is... (on heredocs)

by Aristotle (Chancellor)
on May 03, 2003 at 01:49 UTC ( #255225=note: print w/replies, xml ) Need Help??


in reply to Re: The plural of "athlete's foot" is...
in thread The plural of "athlete's foot" is...

Yes it is. You can use here documents anywhere a string is legal, in fact, you can even chain them:
print $cond ? << 'HERE' : << 'DOC'; foo bar HERE baz quux DOC
Although that gets unreadable real quick like.

Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://255225]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-06-22 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (124 votes). Check out past polls.

    Notices?