in reply to Problems with matching?
Turn your while into a s///eg
$file =~ s{^\s+description\s\K(\w{4})(-\w+-\w+)(?:=;)}{ my $prefix = $1; my $suffix = $2; # Optional Transformation logic here, giving $prefix and $suffix n +ew values. $prefix.$suffix }mge;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems with matching?
by Argel (Prior) on May 18, 2011 at 23:32 UTC | |
by wind (Priest) on May 19, 2011 at 00:10 UTC |