nickt9999 has asked for the wisdom of the Perl Monks concerning the following question:
Hi
New here, I am after some help.
I cant for the life of me work out how to do it.
I need to sort the below:
$VAR1 = { '127' => { 'network' => '10.182.48.0/24', 'VLAN' => '3509' }, '32' => { 'network' => '10.182.12.0/25', 'VLAN' => '2121' }, '90' => { 'network' => '10.183.243.128/25', 'VLAN' => '3494' } }
I would it to be sorted by the Network. Is this possible, could someone please post the code to do this.
Thanks in Advance.
Nick
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Sorting Hash / Array
by cdarke (Prior) on May 16, 2012 at 17:51 UTC | |
by sauoq (Abbot) on May 16, 2012 at 18:23 UTC | |
by cdarke (Prior) on May 16, 2012 at 19:21 UTC | |
by sauoq (Abbot) on May 16, 2012 at 20:27 UTC | |
Re: Sorting Hash / Array
by kcott (Archbishop) on May 16, 2012 at 18:00 UTC | |
by johngg (Canon) on May 16, 2012 at 20:05 UTC | |
Re: Sorting Hash / Array
by Cristoforo (Curate) on May 16, 2012 at 20:46 UTC | |
by nickt9999 (Acolyte) on May 16, 2012 at 22:27 UTC | |
by nickt9999 (Acolyte) on May 17, 2012 at 16:09 UTC | |
by johngg (Canon) on May 21, 2012 at 09:45 UTC | |
Re: Sorting Hash / Array
by salva (Canon) on May 21, 2012 at 14:32 UTC |
Back to
Seekers of Perl Wisdom