Skip Menu |

This queue is for tickets about the File-Sync CPAN distribution.

Report information
The Basics
Id: 50418
Status: resolved
Priority: 0/
Queue: File-Sync

People
Owner: cevans [...] cpan.org
Requestors: pterjan [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.09
Fixed in: (no value)



Subject: Breaks XML::Parser
use File::Sync; use XML::Parser; my $parser = XML::Parser->new(); $parser->parsefile("test.xml"); Will give : Can't locate object method "read" via package "FileHandle" at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/XML/Parser/Expat.pm line 469. It works fine without the "use File::Sync" When using File::Sync + XML::Parser, I need to add use FileHandle
I last updated File::Sync nearly ten years ago, and I don't plan to make any further changes. IO::Handle has had a sync() method since 2001 (http://perl5.git.perl.org/perl.git/commit/cf7fe8a27ac6ee8776974a7c83e8042 5f2ec0ff8), and everyone should be using that instead.
This is fixed in File::Sync 0.11, we no longer touch anything in IO::* . Cheers. brianski@cpan.org