Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Stepping through a hash while modifiying its content

by Gorgarian (Initiate)
on Dec 28, 2012 at 04:48 UTC ( #1010615=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      while ( ($key, $value) = each %hash ){
      }
      
    
  2. or download this
      @array = keys %hash;
      foreach $key (@array){
    ...
       # key, value deletions.
      }
      
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1010615]
Approved by muba
Front-paged by Lotus1
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2016-06-25 10:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (323 votes). Check out past polls.