Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Array of Hashes in subroutines.

by oko1 (Deacon)
on Sep 18, 2010 at 18:22 UTC ( [id://860652]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print @{($bar->(qw/fiddle glop/))[1][9]};      # Print the whole list
    print ${($bar->(qw/fiddle glop/))[1][9]}[3];   # Print the 4th element
    print ${$x}[0];                                # You can even use it i
    +nstead of the IDO - but it's kinda ugly :)
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    for my $k (sort keys %hash1){
        print "$k: @{$hash1{$k}}\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2024-03-28 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found