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