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»
In reply to Re: replace a character based on rule file
by karlgoethebier
in thread replace a character based on rule file
by lakssreedhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |