Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 having an uproarious good time at the Monastery: (8)
As of 2015-07-29 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls