Post without Account — your post will be reviewed, and if appropriate, posted under Anonymous. You can also use this link to report any problems registering or logging in.

RT 120756 - Ambiguous call resolved as CORE::open()

  • 3 Replies
  • 1630 Views
*

Offline Phil

  • Global Moderator
  • Sr. Member
  • *****
  • 417
    • View Profile
RT 120756 - Ambiguous call resolved as CORE::open()
« March 26, 2017, 10:05:13 AM »
Sat Mar 25 17:19:51 2017 abrahmia [...] physics.rutgers.edu - Ticket created
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?
Code: [Select]
#!/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.

<formatting cleanup - Mod.>
« Last Edit: May 01, 2017, 11:00:55 AM by Phil »

*

Offline Phil

  • Global Moderator
  • Sr. Member
  • *****
  • 417
    • View Profile
Re: RT 120756 - Ambiguous call resolved as CORE::open()
« Reply #1: March 26, 2017, 10:13:39 AM »
This was fixed in 3.002 release (add CORE:: qualifier).

Add: there are many more "bare" open() and close() (and possibly other CORE functions) which exist, but haven't been flagged yet. At some point in the future they may end up having CORE:: added, but until an issue is discovered with them, I would prefer to leave them alone.
« Last Edit: March 26, 2017, 11:46:51 AM by Phil »

*

Offline Phil

  • Global Moderator
  • Sr. Member
  • *****
  • 417
    • View Profile
Re: RT 120756 - Ambiguous call resolved as CORE::open()
« Reply #2: May 24, 2017, 05:57:12 PM »
Tue May 23 22:26:56 2017 steve [...] deefs.net - Correspondence added

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.
#
Tue May 23 22:26:56 2017 The RT System itself - Status changed from 'new' to 'open'
#
Tue May 23 22:27:07 2017 steve [...] deefs.net - Status changed from 'open' to 'patched'
#
Tue May 23 22:31:24 2017 steve [...] deefs.net - Ticket #121605: Correspondence added

Thanks for the bug report!  Someone else beat you to it, so I'm going to merge this ticket into that one.
#
Tue May 23 22:31:24 2017 The RT System itself - Ticket #121605: Status changed from 'new' to 'open'
#
Tue May 23 22:31:33 2017 steve [...] deefs.net - Ticket #121605: Merged into ticket #120756
#
Tue May 23 22:31:33 2017 steve [...] deefs.net - Merged into ticket #120756

*

Offline Phil

  • Global Moderator
  • Sr. Member
  • *****
  • 417
    • View Profile
Re: RT 120756 - Ambiguous call resolved as CORE::open()
« Reply #3: July 03, 2017, 10:37:02 AM »
Sun Jul 02 23:42:55 2017 steve [...] deefs.net - Status changed from 'patched' to 'resolved'
#
Sun Jul 02 23:42:56 2017 steve [...] deefs.net - Fixed in 2.032 added