Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Specific hash to array conversion query

by Zaxo (Archbishop)
on Jul 12, 2005 at 03:06 UTC ( [id://474158]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @values = map { foo( $_) } keys %properties;
  2. or download this
    my @values = map {
        my $key = $_;
        map {
            bar( $key, $_)
        } keys %{$properties{$_}}
    } keys %properties;
    
  3. or download this
    my @values = map {
        my $key = $_;
        map {
            [ $key, $_, $properties{$key}{$_}{'value'} ]
        } keys %{$properties{$_}}
    } keys %properties;
    
  4. or download this
    my @values = map {
        my $key = $_;
        map {
            [$key, $_, $properties{$key}{$_}{'value'}]
        } sort {$a <=> $b} keys %{$properties{$_}}
    } sort keys %properties;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found