http://www.perlmonks.org?node_id=1007314

dunnyman has asked for the wisdom of the Perl Monks concerning the following question:

This is my problem:

Failed to open filter FlateDecode (Text::PDF::FlateDecode)

This is my @INC

/applications/dstio/bin/perl_modules/lib/site_perl/5.8.2/aix-thread-mu +lti<br> /applications/dstio/bin/perl_modules/lib/site_perl/5.8.2<br> /usr/opt/perl5/lib/5.8.2/aix-thread-multi<br> /usr/opt/perl5/lib/5.8.2<br> /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi<br> /usr/opt/perl5/lib/site_perl/5.8.2<br> /usr/opt/perl5/lib/site_perl<br>

The code fragment is:

my $filt = eval { require Text::PDF::Filter; my $pkg = "Text::PDF::$filtername"; $pkg->new; };

the Text::PDF and CAM::PDF are installed under the second path, but PERL doesn't seem able to find the filtername ... which does exist.

Help! The Text::PDF::Filter module contains the Text::PDF::FlateDecode module, but nothing I do seems to invoke the beast. How do I know what paths are being used? How do I get it to work?

Replies are listed 'Best First'.
Re: (Text::PDF::FlateDecode) (again,)
by dunnyman (Novice) on Dec 07, 2012 at 11:45 UTC

    The scripts I work with are bollox. Environment variables are blasted when one script is, not when the other is invoked. Rant rant rant.

    Environment variables.