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

Hash key ordering question

by P0w3rK!d (Pilgrim)
on May 07, 2003 at 18:08 UTC ( [id://256334]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # build hash
    while() {
    ...
    # key1 is a number
    # key2 is a sequential number
    }
    
  2. or download this
    $hshFoo{2823}{0} = 2823_0.xml
    $hshFoo{2823}{1} = 2823_1.xml
    $hshFoo{2823}{2} = 2823_2.xml
    $hshFoo{2823}{3} = 2823_3.xml
    
  3. or download this
        foreach $key1 (keys %hshFoo) {
            foreach $key2 (keys %{$hshFoo{$key1}}) {
    ...
    2823/1 => 2823_1.xml
    2823/2 => 2823_2.xml
    2823/3 => 2823_3.xml
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-23 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found