There's really no need for a program here. You can do it all from the command line.
--$ perl -i.bak -pe 's/(\d+)$/+615$1/ if /^0001/' your_filename
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Substitue!
by davorg
in thread Substitution of text within a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |