projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed all instances of FileHandle to IO::File
[spider.git]
/
perl
/
DXLog.pm
diff --git
a/perl/DXLog.pm
b/perl/DXLog.pm
index f089d73d0cecc28058bfd975eaf47df79d207ab5..8281e154e86f6998ecbc25d48d5652de9be76c28 100644
(file)
--- a/
perl/DXLog.pm
+++ b/
perl/DXLog.pm
@@
-29,7
+29,7
@@
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(Log Logclose);
@ISA = qw(Exporter);
@EXPORT = qw(Log Logclose);
-use
FileHand
le;
+use
IO::Fi
le;
use DXVars;
use DXDebug ();
use DXUtil;
use DXVars;
use DXDebug ();
use DXUtil;
@@
-75,7
+75,7
@@
sub open
$mode = 'r' if !$mode;
$self->{mode} = $mode;
$mode = 'r' if !$mode;
$self->{mode} = $mode;
- my $fh = new
FileHand
le $self->{fn}, $mode, 0666;
+ my $fh = new
IO::Fi
le $self->{fn}, $mode, 0666;
return undef if !$fh;
$fh->autoflush(1) if $mode ne 'r'; # make it autoflushing if writable
$self->{fh} = $fh;
return undef if !$fh;
$fh->autoflush(1) if $mode ne 'r'; # make it autoflushing if writable
$self->{fh} = $fh;