Thread Problem beim Mitloggen! (21 answers)
Opened by skontox at 2003-08-21 11:36

pq
 2003-08-22 12:05
#705 #705
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=skontox,22.08.2003, 10<!--emo&:0]Ich habe es gerade mal auspobiert und da gibt es ein Problem mit use strict und flock(FH, LOCK_EX)!

Es kommt dann der Fehler:
Code: (dl )
Bareword "LOCK_EX" not allowed while "strict subs" in use at ...
[/quote]
use Fcntl qw(:flock); # importiere konstanten wie LOCK_EX, LOCK_SH, tc.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Problem beim Mitloggen!