# #
# File: shared/Arc/Starter.pm #
# #
-# Authors: Andre Malo <nd@o3media.de>, 2001-07-16 #
+# Authors: André Malo <nd@o3media.de> #
# #
# Description: start severancer and archiver #
# #
use strict;
use vars qw(
@EXPORT
- $VERSION
);
################################################################################
#
# 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'}
################################################################################
#
require Win32::Process; Win32::Process -> import ('NORMAL_PRIORITY_CLASS', 'DETACHED_PROCESS');
require Win32;
- Win32::Process::Create(
- $p,
- $x,
- "perl $sev",
- 0,
- NORMAL_PRIORITY_CLASS | DETACHED_PROCESS,
- "."
- ) or warn 'could not execute severancer: '.Win32::FormatMessage(Win32::GetLastError());
+ eval q{
+ Win32::Process::Create(
+ $p,
+ $x,
+ "perl $sev",
+ 0,
+ NORMAL_PRIORITY_CLASS | DETACHED_PROCESS,
+ "."
+ ) or warn 'could not execute severancer: '.Win32::FormatMessage(Win32::GetLastError());
+ }
}
### posix_start () #############################################################