On 09/03/2015 04:50 PM, Marius Gavrilescu wrote:
gary.stainb...@ringways.co.uk (Gary Stainburn) writes:
On Thursday 03 September 2015 18:19:57 Marius Gavrilescu wrote:
The above can be shortened using the Sort::Key module.
use Sort::Key 'nkeysort';
for my $key (nkeysort { $pagetypes{$_} } keys %pagetypes) {
# do stuff with $pagetypes{key} here
}
This intrigues me as I can't see where you specify the sequence field.
I'll go Googling
You can't see it because I forgot to specify it >_<
Replace '$pagetypes{$_}' with '$pagetypes{$_}{seq}' and it *should* work.
actually you did specify it. you just used an invisible font! :)
uri
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/