git.shiar.nl
/
perl
/
plp
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
v3.05 release
[perl/plp/.git]
/
PLP
/
Functions.pm
diff --git
a/PLP/Functions.pm
b/PLP/Functions.pm
index 99aa27b1ffc1dd12a19fca30a8c2fe52dfb5a20a..080c61559e6b273ec3cfbb76970f75f89f317233 100644
(file)
--- a/
PLP/Functions.pm
+++ b/
PLP/Functions.pm
@@
-122,8
+122,8
@@
sub WriteFile ($$) {
sub Counter ($) {
local *COUNTER;
local $/ = undef;
sub Counter ($) {
local *COUNTER;
local $/ = undef;
- open COUNTER,
"+<$_[0]"
or
- open COUNTER,
">$_[0]"
or return undef;
+ open COUNTER,
'+<', $_[0]
or
+ open COUNTER,
'>', $_[0]
or return undef;
flock COUNTER, 2;
seek COUNTER, 0, 0;
my $counter = <COUNTER>;
flock COUNTER, 2;
seek COUNTER, 0, 0;
my $counter = <COUNTER>;