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

RE: Re: Using an array in a hash

by maverick (Curate)
on Aug 08, 2000 at 04:36 UTC ( [id://26708]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $ref_to_array  = \@an_array;
    my $ref_to_hash   = \%a_hash;
    my $ref_to_scalar = \$a_scalar;
    
  2. or download this
    my $ref_to_array = [1,2,3,4];
    my $ref_to_hash  = { 'key1' => 'val1', 'key2' => 'val2' };
    my $ref_to_scalar = \"some string\n";
    
  3. or download this
    print $ref_to_array->[0];
    print $ref_to_hash->{'some_key'};
    print ${$ref_to_scalar};
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2025-01-14 17:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (43 votes). Check out past polls.