Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: substituting with hash data

by Cirollo (Friar)
on Aug 16, 2001 at 18:04 UTC ( #105382=note: print w/ replies, xml ) Need Help??


in reply to substituting with hash data

Something like this perhaps?

$string =~ s/$_/$hash{$_}/g for (keys %hash);


Comment on Re: substituting with hash data
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-08-27 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (334 votes), past polls