Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Help creating a data structure

by kirbyk (Friar)
on Jun 28, 2005 at 18:45 UTC ( #470755=note: print w/ replies, xml ) Need Help??


in reply to Help creating a data structure

You can just stick a 'sort' in front of your keys and it will do what you want (with that naming convention). Well, you'll want to numeric sort (so you don't get 1, 10, 11 ..., 2, 20 kinds of sorting.)

foreach $key (sort {$a <=> $b} keys %presentations) {
Perl makes this job nice and easy!

-- Kirby, WhitePages.com


Comment on Re: Help creating a data structure
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-12-27 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls