Thread windows attrib mit perl? (40 answers)
Opened by bianca at 2009-10-10 12:31

bianca
 2009-10-10 13:52
#126825 #126825
User since
2009-09-13
7016 Artikel
BenutzerIn

user image
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl -w
use strict;
use warnings;
local *ARCHIVE;
eval { require Win32::File; };
if (!$@) {
        Win32::File->import('ARCHIVE');
        my $test = Win32::File::GetAttributes ("eval.pl",ARCHIVE);
        print "test: >$test<\n";
}
else { print "Schrott: >$@<\n" }


Ausgabe:

Quote
Bareword "ARCHIVE" not allowed while "strict subs" in use at eval.pl line 8.
Execution of eval.pl aborted due to compilation errors.


Reicht local *ARCHIVE nicht?
10 print "Hallo"
20 goto 10

View full thread windows attrib mit perl?