in reply to Re^2: Command-line arguments to command-line Perl
in thread Command-line arguments to command-line Perl
This seems to be working
cat test 1 2 3 4 5 perl -pe 'BEGIN{$prefix=pop;}s/(\d+)/$prefix.$1/' test A A.1 A.2 A.3 A.4 A.5
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Command-line arguments to command-line Perl
by RecursionBane (Beadle) on Oct 04, 2010 at 04:57 UTC |
In Section
Seekers of Perl Wisdom