]> Dogcows Code - chaz/p5-File-KDBX/commitdiff
Fix compatibility with older perls
authorCharles McGarvey <ccm@cpan.org>
Fri, 22 Apr 2022 04:38:12 +0000 (22:38 -0600)
committerCharles McGarvey <ccm@cpan.org>
Sun, 1 May 2022 00:29:00 +0000 (18:29 -0600)
lib/File/KDBX/KDF/AES.pm

index 161c08615f2dabe205a38d715a07d03efad25797..548f8620d5b1185e0a49ab59d4840ce24155d361 100644 (file)
@@ -19,8 +19,8 @@ our $VERSION = '999.999'; # VERSION
 my $FORK_OPTIMIZATION_THRESHOLD = 100_000;
 
 BEGIN {
-    my $use_fork = $ENV{NO_FORK} || !can_fork ? FALSE : TRUE;
-    *_USE_FORK = sub() { $use_fork };
+    my $use_fork = $ENV{NO_FORK} || !can_fork;
+    *_USE_FORK = $use_fork ? \&TRUE : \&FALSE;
 }
 
 sub init {
This page took 0.023753 seconds and 4 git commands to generate.