Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Ordered hashes (Re: CRSC)

by tye (Sage)
on Feb 22, 2001 at 21:03 UTC ( [id://60249]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @pages = (
      welcome => \&page_welcome,
    ...
    );
    my %pages= @pages;
    @pages= do { my $key= 0; grep { $key= !$key } @pages };
    
  2. or download this
    my( @pageorder, %pages, %validators );
    for(
    ...
        $pages{$_->[0]}= $_->[1];
        $validators{$_->[0]}= $_->[2];
    }
    
  3. or download this
    use mapcar;
    my( @pageorder, %pages, %validators );
    ...
        @pages{@$keys}= @$page;
        @validators{@$keys}= @$valid;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-12-07 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (50 votes). Check out past polls.