Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: iterating hash keys?

by kcott (Abbot)
on Sep 26, 2013 at 18:59 UTC ( #1055882=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
        s/$re/$id_for{$1}/g;
        print $out_replaced_fh $_;
    }
    
  2. or download this
    $ cat pm_1055846_name_id_data.txt
    bananas 456
    oranges 23
    peaches 897236
    kiwis 3726
    
  3. or download this
    $ cat pm_1055846_name_replace_data.txt
    bananas,oranges
    ...
    oranges
    kiwis,oranges,bananas,bananas
    bananas,oranges,pineapples,peaches,kiwis
    
  4. or download this
    $ cat pm_1055846_name_replaced_out.txt
    456,23
    ...
    23
    3726,23,456,456
    456,23,pineapples,897236,3726
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-12-25 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (159 votes), past polls