Thread MP3 ID3 Tag (46 answers)
Opened by timehandler at 2012-06-04 15:49

FIFO
 2012-06-05 19:04
#158765 #158765
User since
2005-06-01
469 Artikel
BenutzerIn

user image
Quote
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
my $cwd = getcwd;

       
        my ($oldlocation,$newlocation);
        $oldlocation = "$cwd";
        print "$oldlocation";
        $newlocation = "$cwd/$info[2] - $info[3]/$_";
        print "\n$newlocation\n";
        
        move($oldlocation, $newlocation) 
        or die "Could not move '$_' zu '$newlocation':$!";


Du versuchst, das aktuelle Arbeitsverzeichnis ($cwd) in ein Unterverzeichnis unterhalb seiner selbst zu verschieben ($cwd/$info[2]...).

Schau Dir vielleicht mal die Doku vonCPAN:File::Copy an. Und nimm btw Abschied von der sinnfreien while (<STDIN>)-Schleife, wie schon erwähnt ...
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"

View full thread MP3 ID3 Tag