Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Confused by '+' syntax in code sample.

by space_monk (Chaplain)
on Jun 26, 2013 at 05:56 UTC ( [id://1040704]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    # say would think that its arguments are the whole statement in bracke
    +ts
    ...
    #..so we use the + to make it clear that the contents of the brackets 
    +are not function arguments
    # but part of an expression
    say +(split ':')[0] while (<DATA>);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found