How can I make this piece of my code terser (in one line) but still understandable.
($ext) = $ARGV[0] =~ /(\.[^.]+)$/;
$ext=~s/^.//s;
$ext=uc $ext;
It gets the file extensions, remove the dot and then uppercase it.
in: asldaldjlajdlk.torrent
out: TORRENT