Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Answer: Funny usage of print function

( #5737=categorized answer: print w/ replies, xml ) Need Help??

Q&A > input and output > Funny usage of print function contributed by chromatic

If you have a newline embedded in a quoted string (single or double both work for me), Perl will include it when printing:
print "a b c d";
prints
a b c d
while print "a b c d"; prints a b c d Check for line breaks in your code.

Comment on Answer: Funny usage of print function
Select or Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-12-28 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (180 votes), past polls