Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Array indices

by blokhead (Monsignor)
on Sep 14, 2002 at 06:06 UTC ( [id://197810]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @names = ( { first => 'john', last => 'brown' },
                  { first => 'jacob', last => 'black' },
    ...
    for (@names) {
        push @fullnames, $_->{first} . ' ' . $_->{last};
    }
    
  2. or download this
    print "found heimer\n" if ("heimer" ~= @firstnames);  # Perl 6 (or app
    +roximation)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-03-19 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found