Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re-orderable keyed access structure?

by injunjoel (Priest)
on Aug 15, 2004 at 00:20 UTC ( #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
Node Status?
node history
Node Type: note [id://383030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2020-04-03 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (27 votes). Check out past polls.

    Notices?