Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Replacing a specfied instance of a pattern in a string

by Jasper (Chaplain)
on Jul 15, 2005 at 11:01 UTC ( #475172=note: print w/ replies, xml ) Need Help??


in reply to Replacing a specfied instance of a pattern in a string

my $instance = 3; $string = s/fsih/--$instance?$&:'fish'/eg;


Comment on Re: Replacing a specfied instance of a pattern in a string
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2015-07-06 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls