X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/df7bba65634dbc997ba06409e25a49b8be9dd139..7cfc9e17caf89a9b009e8fa2c65351255687706e:/selfforum-cgi/shared/Posting/Cache.pm?ds=sidebyside diff --git a/selfforum-cgi/shared/Posting/Cache.pm b/selfforum-cgi/shared/Posting/Cache.pm index 8cd5fdf..5e27d0b 100644 --- a/selfforum-cgi/shared/Posting/Cache.pm +++ b/selfforum-cgi/shared/Posting/Cache.pm @@ -4,17 +4,13 @@ package Posting::Cache; # # # File: shared/Posting/Cache.pm # # # -# Authors: André Malo , 2001-06-22 # +# Authors: André Malo # # # # Description: Views/Voting Cache class # # # ################################################################################ use strict; -use vars qw( - $VERSION -); - use Fcntl; use File::Path; use Lock; @@ -23,9 +19,16 @@ use Lock; # # Version check # -$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; +# last modified: +# $Date$ (GMT) +# by $Author$ +# +sub VERSION {(q$Revision$ =~ /([\d.]+)\s*$/)[0] or '0.0'} -my $O_BINARY = eval "O_BINARY"; +my $O_BINARY = eval q{ + local $SIG{__DIE__}; + O_BINARY; +}; $O_BINARY = 0 if ($@); ### sub new ####################################################################