in reply to Re^2: Find pieces of text in a file enclosed by `@` and replace the inside
in thread Find pieces of text in a file enclosed by `@` and replace the inside
That would have been useful information to have provided upfront. Perhaps you'd care to update your initial post with this limitation. You can still do the transliteration - this code produces the same output as my previous solution:
$ perl -Mstrict -Mwarnings -e ' binmode STDOUT => ":utf8"; my $subs = join q{} => map chr, 0x430, 0x431, 0x446, 0x410, 0x411, + 0x426; while (<>) { s/@([^@]+)@/"\$_ = \$1; y{abcABC}{$subs}; \$_"/eeg; print; } '
-- Ken
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Find pieces of text in a file enclosed by `@` and replace the inside
by Anonymous Monk on Mar 11, 2013 at 10:01 UTC | |
by kcott (Archbishop) on Mar 11, 2013 at 15:57 UTC | |
by kluther (Novice) on Mar 29, 2013 at 05:20 UTC |
In Section
Seekers of Perl Wisdom