Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: print question

by mreece (Friar)
on Aug 16, 2007 at 02:40 UTC ( #632908=note: print w/replies, xml ) Need Help??


in reply to print question

qw() returns a list but print does not. you can make it clear to perl that ("a", "b") is its own list rather than the parameters to the print function with the unary-plus trick:
print +("a", "b")[1];
and to quote code in your posts, use <c>...</c>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://632908]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2021-01-27 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?