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

Re^4: Assigning Variables to String Elements

by dave_the_m (Monsignor)
on Dec 07, 2013 at 11:07 UTC ( [id://1066117]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Assigning Variables to String Elements
in thread Assigning Variables to String Elements

Split returns an array.
Strictly speaking, no it doesn't. It returns a list, and in scalar context it is designed to return a list of one element, that element being the number of items that split would have returned in list context. This semantic distinction doesn't make any practical difference for split, but would for something like splice.

Dave.

  • Comment on Re^4: Assigning Variables to String Elements

Log In?
Username:
Password:

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

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

    No recent polls found