in reply to Replace a hash key if it matches a regex
Assuming you need to keep characters upto one more than the first occurence of "-"
s/-./$`$&/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replace a hash key if it matches a regex
by AnomalousMonk (Archbishop) on Sep 13, 2013 at 09:11 UTC |