Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?
[Discipulus]: hello nuns and monks! how was the dayligth here at PM?

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-12-12 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (335 votes). Check out past polls.

    Notices?