Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: replace a character based on rule file

by karlgoethebier (Parson)
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


#!/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»

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007034]
[ambrus]: MLX: if it's a work email, then it's probably not Uncle Sam that matters, but what the account managing server at work thinks your name is. Those can differ. For example, we've had two co-workers with identical real name at one point,
[ambrus]: so one got a stupid suffix in the email account (people have email address based on their real name here usually).

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-01-19 14:05 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (170 votes). Check out past polls.