Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Ordered hashes (Re: CRSC)

by tye (Cardinal)
on Feb 22, 2001 at 21:03 UTC ( #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
Node Status?
node history
Node Type: note [id://60249]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-12-26 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (168 votes), past polls