Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: replace a character based on rule file

by karlgoethebier (Curate)
on Dec 04, 2012 at 08:57 UTC ( #1007034=note: print w/ replies, xml ) Need Help??


in reply to replace a character based on rule file

TWTOWTDI:

#!/usr/bin/perl use strict; use warnings; my @words = qw{ door name dad naming }; print join ("\n", map { $_=~ s{(?<=na)m}{+d}; $_ } @words); __END__ door na+de dad na+ding

See map

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»


Comment on Re: replace a character based on rule file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-08-02 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls