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

Answer: Funny usage of print function

by chromatic (Archbishop)
on Mar 20, 2000 at 23:29 UTC ( #5737=categorized answer: print w/replies, xml ) Need Help??

Q&A > input and output > Funny usage of print function - Answer 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";
a b c d
while print "a b c d"; prints a b c d Check for line breaks in your code.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (15)
As of 2016-10-24 13:30 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (305 votes). Check out past polls.