Skip Menu |

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

Report information
The Basics
Id: 46105
Status: resolved
Estimated: 1 hour (60 min)
Worked: 1 hour (60 min)
Priority: 0/
Queue: PDF-Burst

People
Owner: Nobody in particular
Requestors: ahernit [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 1.17



Subject: No message if File::Which missing
Hi Leo, I used the pdf burst method with pdftk, and it did not work first but also did not tell me anything. After looking inside the code I found out that File::Which is needed. So I added it and it worked. Please consider in doing a check or using it with "use" to have a validation. thanks!
Subject: Re: [rt.cpan.org #46105] No message if File::Which missing
Date: Fri, 15 May 2009 09:54:34 -0400
To: bug-PDF-Burst [...] rt.cpan.org
From: leo charre <leocharre [...] gmail.com>
Andreas, I am sorry you had a frustrating time with this module. You did not need to look inside the code.. a) If you installed this via command line cpan, it should have installed File::Which for you. The module distro's Makefile.PL: http://cpansearch.perl.org/src/LEOCHARRE/PDF-Burst-1.16/Makefile.PL clearly states that File::Which is needed, and what version. b) If you downloaded the package and installed it yourself- calling 'perl Makefile.PL' would have told you that you're missing File::Which. Were you looking at the error logs?Or stderr ? Even a require should throw an exception- a noisy one. Now, what you may have asked yourself- Why is File::Which on 'require' instead of 'use'? Because File::Which may not be needed if you provide your own path to the executables. At compile time, I skip stuff that we may or may not need, to make it faster. All that said.. I am making the change you suggested. And changing to 'use File::Which'. The new release is PDF::Burst 1.17, your request is noted in the Changes file. On 5/15/09, Andreas Hernitscheck via RT <bug-PDF-Burst@rt.cpan.org> wrote: Show quoted text
> Fri May 15 06:11:10 2009: Request 46105 was acted upon. > Transaction: Ticket created by AHERNIT > Queue: PDF-Burst > Subject: No message if File::Which missing > Broken in: (no value) > Severity: Wishlist > Owner: Nobody > Requestors: ahernit@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46105 > > > > Hi Leo, > > I used the pdf burst method with pdftk, and it did not work first but > also did not tell me anything. After looking inside the code I found out > that File::Which is needed. So I added it and it worked. > > Please consider in doing a check or using it with "use" to have a > validation. > > thanks! >
-- Leo Charre
Oh it was not such frustrating. I installed it by copying it manually from your compressed file. That is an explanation for the "non autodetection". The reason is, that I wanted it only in a project folder, not system wide. I am not sure, but maybe a require("foo::bar") or die "foo::bar not availlable"; would also help?