Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
laziness, impatience, and hubris
 
PerlMonks  

Re^2: replace text with function ?

by ikegami (Pope)
on Jan 12, 2009 at 03:51 UTC ( #735597=note: print w/ replies, xml ) Need Help??


in reply to Re: replace text with function ?
in thread replace text with function ?

A simple example:

s/(\d+)/ sprintf('%03d', $1) /eg;


Comment on Re^2: replace text with function ?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2013-05-26 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (524 votes), past polls