my($name,$ext); ($name, $ext) = m!\A(.*)\.([^.]+)\z!s or $name = $_,$ext=''; [download]
In reply to Re: Re: Removing File Extensions by sgifford in thread Removing File Extensions by BalochDude