Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Need clarification on the print function

by trammell (Priest)
on Mar 17, 2005 at 23:09 UTC ( [id://440580]=note: print w/replies, xml ) Need Help??


in reply to Need clarification on the print function

The text you're quoting:
  (NOTE: If FILEHANDLE is a variable and the next token
  is a term, it may be misinterpreted as an operator
  unless you interpose a "+" or put parentheses around
  the arguments.)
applies to the print FILEHANDLE LIST form of print. More relevant for your print statement is:
  Also be careful not to follow the print keyword with
  a left parenthesis unless you want the corresponding
  right parenthesis to terminate the arguments to the
  print--interpose a "+" or put parentheses around all
  the arguments.
Without the "+", you would have
print(split)[2], $, ;
which is a syntax error.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found