Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re-orderable keyed access structure?

by injunjoel (Priest)
on Aug 15, 2004 at 00:20 UTC ( [id://383030]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    my @ref_array = ([state,pointer],[state,pointer],[state,pointer]);
    my $i = -1;
    my %key_index = map($i++; unshift(@{$_},$i); $i,\$_;)@ref_array;
    
  2. or download this
    %key_index         items in anon.arrays 
                       (@ref_array in my post)
    { 0 => \itemA }    [ 0, status, dataA ] 
    { 1 => \itemB }    [ 1, status, dataB ]
    { 2 => \itemC }    [ 2, status, dataC ]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found