This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id:
120756
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
abrahmia [...] physics.rutgers.edu
steve.bitcard [...] yewtc.demon.co.uk
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
2.032



Subject: Ambiguous call resolved as CORE::open()
Date: Sat, 25 Mar 2017 17:58:37 +0000
To: "bug-PDF-API2@rt.cpan.org" <bug-PDF-API2@rt.cpan.org>
From: Abdelbaki Brahmia <abrahmia@physics.rutgers.edu>

For some reason this simple script is reporting the following error. Is this a bug in the module?

 

#!/usr/bin/perl –w

 

use PDF::API2;

 

my $file= "file.pdf";

my $pdf = PDF::API2->open($file);

my $pages = $pdf->pages;

print $pages;

 

ERROR:

 

use Win32::Ambiguous call resolved as CORE::open(), qualify as such or use & at C:/Perl/site/lib/PDF/API2/Basic/PDF/File.pm line 726.

Subject: Warning given in PDF::API2
This was broken by commit c04dbfc5b3401912cb181a73bf2fcb633a574628 " Allow object streams to be read from cache files". There is a call to to open at around line 726 that should be CORE::open. Currently the following warning is being generated. Ambiguous call resolved as CORE::open(), qualify as such or use & at /usr/share/perl5/vendor_perl/PDF/API2/Basic/PDF/File.pm line 726, ...
Thanks for the bug report. This was a result of enabling warnings in an earlier release. I've patched it, and the warning will go away in the next release.
On Wed May 10 11:37:48 2017, SJR wrote:
Show quoted text
> This was broken by commit c04dbfc5b3401912cb181a73bf2fcb633a574628 " > Allow object streams to be read from cache files". There is a call to > to open at around line 726 that should be CORE::open. > > Currently the following warning is being generated. > > Ambiguous call resolved as CORE::open(), qualify as such or use & at > /usr/share/perl5/vendor_perl/PDF/API2/Basic/PDF/File.pm line 726, ...
Thanks for the bug report! Someone else beat you to it, so I'm going to merge this ticket into that one.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.