Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Indented HEREDOC?

by YuckFoo (Abbot)
on May 26, 2006 at 22:43 UTC ( #551945=note: print w/replies, xml ) Need Help??


in reply to Indented HEREDOC?

Withigo

I use the quote operators in place of heredocs whenever possible (perlop), because it looks better. This adds a leading newline and trailing whitespace to the string, but when that's not important, I like it.

QqFoo

if ($foo) { print qq { foo is $foo. }; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://551945]
help
Chatterbox?
and snow settles gently...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2017-02-21 21:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (320 votes). Check out past polls.