Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: @array[1] is valid??

by dvergin (Monsignor)
on Aug 04, 2003 at 19:02 UTC ( #280765=note: print w/ replies, xml ) Need Help??


in reply to @array[1] is valid??

You are printing a single-element array slice. Perhaps this will make more clear what is happening.

my @foo = (1,2,3); print "@foo[1,2]\n"; #prints: 2 3

------------------------------------------------------------
"Perl is a mess and that's good because the
problem space is also a mess.
" - Larry Wall


Comment on Re: @array[1] is valid??
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2015-07-04 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls