Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Array/List Strangeness

by Taulmarill (Deacon)
on Aug 04, 2009 at 20:41 UTC ( #785892=note: print w/replies, xml ) Need Help??


in reply to Array/List Strangeness

The difference is, that in the first two examples, you get an element of an array. In the last example you get an element from a list. Now every element of an array, which has not been set, is per default undef, since arrays in Perl have no limits. Lists are different, since lists are finite, they can return an empty list or a list shorter than the requested slice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://785892]
help
Chatterbox?
[stevieb]: A couple of years ago I went to Curacao on a business trip which is a few parallels south of Canary Islands, but one thing I liked was it was 90 degrees at all times consistently. Much different experience than living in Canada :)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-02-23 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (349 votes). Check out past polls.