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