in reply to Re: Re: Array of ($1, $2, ...) in replacement part of s///?
in thread Array of ($1, $2, ...) in replacement part of s///?
And now in the usual idiom as well.
join "," , map substr( $str, $-[$_], $+[$_] - $-[$_] ), 1 .. $#+;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: *4 Array of ($1, $2, ...) in replacement part of s///?
by flounder99 (Friar) on Jan 30, 2004 at 15:18 UTC |