Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: Assigning Variables to String Elements

by dave_the_m (Monsignor)
on Dec 07, 2013 at 11:07 UTC ( #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
Node Status?
node history
Node Type: note [id://1066117]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2020-10-21 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (217 votes). Check out past polls.

    Notices?