Thread Pugs: perl5:Fcntl (1 answers)
Opened by bloonix at 2007-08-01 17:27

bloonix
 2007-08-01 17:27
#97132 #97132
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
Hallo Community,

weiß jemand weiter... ich versuche folgendes:

Code: (dl )
1
2
3
4
5
6
7
#!/usr/bin/pugs
use perl5:Fcntl <:flock>;

my $fh = open( 'test.txt', :w );
flock($fh, LOCK_EX);
$fh.say: "Hello World!";
$fh.close;


Aber das wirft mir einen Fehler aus:

Code: (dl )
1
2
3
4
5
*** 
Unexpected ";"
expecting term postfix or operator
Non-Code exports does not work yet
at ./flock.pl line 2, column 25


flock "liegt" ja in %EXPORT_TAGS. Ich habe keine Ahnung, wie
ich das nun importieren kann.

Gruss,
opi
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Pugs: perl5:Fcntl