以下のコードを確認してください。
#!/usr/bin/perl -w
use Cwd;
use warnings;
use Net::FTP;
use File::Copy;
use File::Path;
use Time::Local;
use File::Basename;
use strict;
my $directory = "/media/Songs/Perl/test";
my $path = "/media/Songs/Perl/test_sort";
opendir(DIR,$directory);
my @files = readdir(DIR);
closedir(DIR);
foreach my $t (@files)
{
copy($t,$path); //copying files
}