Schrift
[thread]9918[/thread]

Pugs: perl5:Fcntl

Leser: 3


<< >> 2 Einträge, 1 Seite
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.
bloonix
 2007-08-01 19:42
#97153 #97153
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
... scheint derzeit noch ein Bug zu sein ...
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.
<< >> 2 Einträge, 1 Seite



View all threads created 2007-08-01 17:27.