Thread opendir (14 answers)
Opened by Gast at 2009-05-23 10:14

Gast Gast
 2009-05-23 13:21
#121848 #121848
mit
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env perl6


my $directory = '/data';

my $dh = opendir( $directory ) err die $!;
    
for $dh.readdir {
    .say;
}

$dh.closedir;

bekomme ich
Quote
Statement not terminated properly at line 6, near "err die $!"
in Main (src/gen_setting.pm:0)

und mit
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env perl6


my $directory = '/data';

my $dh = opendir( $directory ) orelse die $!;
    
for $dh.readdir {
    .say;
}

$dh.closedir;

Quote
Could not find non-existent sub opendir

View full thread opendir