in reply to How can I reduce this with a REGEX?
updatedwhile(<DATA>){ %h = (); undef $h{$1} while(s/(\d\d)//); print join ("-", sort keys %h),"\n"; } __DATA__ 12-12 12-12-12 12-13-12-13 12-12-13-13 12-13-13-14
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I reduce this with a REGEX?
by choroba (Cardinal) on Mar 15, 2014 at 11:15 UTC | |
by Lennotoecom (Pilgrim) on Mar 15, 2014 at 18:56 UTC |