Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Sorting Hash / Array

by Cristoforo (Curate)
on May 16, 2012 at 20:46 UTC ( [id://970921]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use strict;
    use warnings; use 5.014;
    ...
    for my $key (@sorted_keys) {
        printf "%4d%20s%6s\n", $key, $data->{$key}{network}, $data->{$key}
    +{VLAN};
    }
    
  2. or download this
    C:\Old_Data\perlp>perl 970882.pl
      36       10.182.2.0/25  2222
    ...
      90   10.183.243.128/25  3494
    
    C:\Old_Data\perlp>
    
  3. or download this
    C:\Old_Data\perlp>perl t.pl
    Key     Network                 VLAN
    32      10.182.12.0/25          2121
    36      10.182.2.0/25           2222
    127     10.182.48.0/24          3509
    90      10.183.243.128/25               3494
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found