> Hi! > > > > how can I fix this error telling perl to search in corretc path (that > > > is /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/Fcntl.pm)? > > You can push || unshift(@INC, 'some directory'). >
As Jeff mentioned this is not sufficient. The reason is because modules are loaded at compile time when 'use'd which means the update to @INC must happen at compile time, the above happens at runtime unless you add a BEGIN block around it. Better to use 'lib' pragma. perldoc lib But again, including a directory from a different version of Perl sounds like headaches to me. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>