Leser: 1
9 Einträge, 1 Seite |
1 2 3 4 5
my $string = ''; for my $file ( @files_on_cd ){ $string .= do{ local ( @ARGV,$/ ) = $file; <> }; }
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 ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
use strict;
use warnings;
use File::Find;
my $string = '';
my $cdpath='E:/';
my $cdfiles;
find (sub{ $cdfiles.=do{ local ( @ARGV,$/ ) = $File::Find::name; <> }; },$cdpath);
for my $file2 ( $cdfiles )
{
$string .= do{ local ( @ARGV,$/ ) = $file2; <> };
print $file2;
}
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 ...
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='/medie/cd0/'; my $file_data_from_cd; find(sub{ $file_data_from_cd.=do{ local ( @ARGV,$/ ) = $File::Find::name; <> } if(-f $File::Find::name); },$path_to_cd); ## Tuh was mit den Daten in $file_data_from_cd ...
9 Einträge, 1 Seite |