Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Replace In a Single Line

by 7stud (Deacon)
on Jan 17, 2013 at 11:04 UTC ( #1013757=note: print w/ replies, xml ) Need Help??


in reply to Replace In a Single Line

use strict; use warnings; use 5.012; my $var = "GoodMan"; my $result = join "", (sprintf "%s", $var) =~ m/(.*?) oo (.*)/xms; say $var; say $result; --output:-- GoodMan GdMan

A ridiculous question deserves a ridiculous answer.


Comment on Re: Replace In a Single Line
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2015-07-30 19:28 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 (273 votes), past polls