Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: foreach doesn't select array element

by december (Pilgrim)
on May 04, 2009 at 13:31 UTC ( #761721=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    \@arr =
    [
    ...
    foreach my girl (@$arr[3]) {
      print "$girl\n";
    }
    
  2. or download this
    \@arr =
    [
    ...
      3,
      \[ anna, beth, christie, denise ],
    ]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2022-05-28 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?