From: pcanterino <> Date: Wed, 16 Feb 2005 14:10:40 +0000 (+0000) Subject: http://forum.de.selfhtml.org/?t=101375&m=622582 X-Git-Tag: version_2_3_1~1 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/362eeaa190459c405df9a134341fe9923032d16a?hp=2f5a43fa61928517ebeb11e02e2b4c33e9a6ceb8 http://forum.de.selfhtml.org/?t=101375&m=622582 This posting in a big german web developer forum sounds very convincing --- diff --git a/modules/File/Access.pm b/modules/File/Access.pm index dd6403b..ad2bc13 100644 --- a/modules/File/Access.pm +++ b/modules/File/Access.pm @@ -7,7 +7,7 @@ package File::Access; # using only one command # # Author: Patrick Canterino -# Last modified: 2005-02-12 +# Last modified: 2005-02-16 # use strict; @@ -151,7 +151,6 @@ sub file_read($;$) read(FILE, my $content, -s $file); - file_lock(FILE,LOCK_UN) or do { close(FILE); return }; close(FILE) or return; return \$content; @@ -179,7 +178,6 @@ sub file_save($$;$) print FILE $$content or do { close(FILE); return }; - file_lock(FILE,LOCK_UN) or do { close(FILE); return }; close(FILE) or return; return 1;