- or download this
my %oldfiles;
foreach $file (@FileArray){
...
if ( $oldfiles{$shortenedname}++ ) {
# short name already exist, try again
...
- or download this
if ( $oldfiles{$shortenedname}++ ) {
my $base = substr($file, 0, 6);
...
push @short_files, $shortenedname;
}
return @short_files;
- or download this
if ($file =~ /\.mp3$/i ){
push(@mp3files, $file);
}