Thread CD in String umwandeln
(8 answers)
Opened by Gast at 2007-11-09 18:05
Hallo,
das was du da hast ist so nicht richtig. Du brauchst ausschlieslich das: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 #!/usr/bin/perl use strict; use warnings; use File::Find; my $path_to_cd='/media/cd0/'; my $file_data_from_cd; find(sub{ $file_data_from_cd.=do{ local ( @ARGV,$/ ) = $File::Find::name; <> }; },$path_to_cd); ## Tuh was mit den Daten in $file_data_from_cd ... .. in eine Datei namens "xyz.pl" (ohne die Gaensefuesschen) kopieren und dann ausfuehren. Dein code oben ist da doppelt gemobbelt. Gruss, rperl |