in reply to Re: Hash ref and file extensions
in thread Hash ref and file extensions
by:if ($dot > -1) { $extension = substr($filename, $dot+1); $extensions{$extension}++; } else { $extensions{'_without_extension'}++; }
for two reasons:$extensions{$dot == -1 ? '' : substr( $filename,$dot )}++;
|
|---|