Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: using hashes

by kennethk (Abbot)
on Sep 26, 2013 at 17:44 UTC ( #1055871=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/\b$find\b/$replace/g
    
  2. or download this
    for my $line (@lines) {
        for my $find(sort {length($b) <=> length($a)} keys %ids) {
         $line =~ s/$find/$ids{$find}/g;
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055871]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-10-24 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (289 votes). Check out past polls.

    Notices?