You were looking for:
s/^(\d+)/$n=$1;$l="a";$l++while--$n;$l/meg
Doesn't cope with 0 especially well.
In reply to Re^6: Efficient way to replace a set of values with another set of values
by tobyink
in thread Efficient way to replace a set of values with another set of values
by darklord_999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |