> perl -le '$,=":";print reverse split /\./, "filename.ext", 2' ext:filename
Enjoy!perl -le '$,=":";print reverse( "filename.ext" =~ /(.*)\.([^.]+)$/ )'
In reply to Re: elements not reversing inside a map
by Codon
in thread elements not reversing inside a map
by Transient
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |