I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2012-01-04 08:27:43.243487-08 by mwunderlich
Problem with App::Packer::PAR: "Can't locate object method "new"
Hi there, this is my first post to this forum, so please forgive me if it is not the right place. I am trying to compile a perl script using another perl application that is based on the App::Packer::PAR module (at least that's what the situation looks like; I don't have much experience in the Perl world). When trying to run the application, I get the following error: Can't locate object method "new" via package "App::Packer::PAR" (perhaps you forgot to load "App::Packer::PAR"?) at pp line 19. I am rather puzzled by this, because the inclusion of the module is there alright:
use 5.006; use App (); use App::Packer (); use App::Packer::PAR (); use PAR (); use PAR::Packer (); use Module::ScanDeps ();
And the package is also included in the /lib folder of the Perl installation under /App/Packer/PAR.pm. FWIW, I am using Perl 5.12.4 on Windows 7 64bit. I noticed that the PAR.pm script doesn't have a "new" method, which is what seems to be causing the error. Or is it something else? Any ideas? Cheers, Martin
Direct Responses: Write a response