in reply to elements not reversing inside a map
> perl -le '$,=":";print reverse split /\./, "filename.ext", 2' ext:filename
Enjoy!perl -le '$,=":";print reverse( "filename.ext" =~ /(.*)\.([^.]+)$/ )'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: elements not reversing inside a map
by Transient (Hermit) on May 05, 2005 at 21:29 UTC | |
by eibwen (Friar) on May 06, 2005 at 00:11 UTC |