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

Re^5: using hashes

by kennethk (Monsignor)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-11-21 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (110 votes), past polls