Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: What is the difference between $array[1] and @array[1]?

by ikegami (Patriarch)
on Apr 07, 2009 at 14:32 UTC ( [id://756042]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -we"@x = @x[1]"
    Scalar value @x[1] better written as $x[1] at -e line 1.
    
  2. or download this
    my $ele = $array[1];        # Array index
    my @eles = @array[1,2,3];   # Array slice
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2025-01-15 06:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (46 votes). Check out past polls.