Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: making arrays that act like hashes at runtime

by amphiplex (Monk)
on Jul 01, 2002 at 12:07 UTC ( #178522=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $pseudo_hash->[0]->{"z"} = @{$pseudo_hash};
    
  2. or download this
    $pseudo_hash->{"z"} = "value z";
    
  3. or download this
    my $a = [ {first=>1, second=>2}, "hello", "there" ];
    print "$a->{first}\t$a->{second}\n";
    ...
    $a->[0]->{'third'} = @{$a};
    $a->{'third'} = "foo";
    print "$a->{first}\t$a->{second}\t$a->{third}\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://178522]
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-12-03 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?