Codebase list libfile-flat-perl / 6bb1862
switch from "use vars" to "our", raising minimum perl to 5.6 Karen Etheridge 5 years ago
1 changed file(s) with 9 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
1515 use prefork 'File::Copy::Recursive';
1616 use prefork 'File::Remove';
1717
18 use vars qw{$VERSION $errstr %modes $AUTO_PRUNE};
19 BEGIN {
20 $VERSION = '1.05';
21
22 # The main error string
23 $errstr = '';
24
25 # Create a map of all file open modes we support,
26 # and which ones will create a new file if needed.
27 %modes = (
18 our $VERSION = '1.05';
19
20 # The main error string
21 our $errstr = '';
22
23 # Create a map of all file open modes we support,
24 # and which ones will create a new file if needed.
25 our %modes = (
2826 '<' => 0, 'r' => 0, # Read
2927 '+<' => 1, 'r+' => 1, # ReadWrite
3028 '>' => 1, 'w' => 1, # Write
3230 '>>' => 1, 'a' => 1 # Append
3331 );
3432
35 $AUTO_PRUNE = '';
36 }
37
38
39
33 our $AUTO_PRUNE = '';
4034
4135
4236 #####################################################################