Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^9: 'do' command is dead? Surely not?

by Anonymous Monk
on May 19, 2017 at 18:38 UTC ( #1190667=note: print w/replies, xml ) Need Help??

in reply to Re^8: 'do' command is dead? Surely not?
in thread 'do' command is dead? Surely not?

the program would have to be trying to load said module first ... its expecting it to exist
  • Comment on Re^9: 'do' command is dead? Surely not?

Replies are listed 'Best First'.
Re^10: 'do' command is dead? Surely not?
by Corion (Pope) on May 20, 2017 at 09:31 UTC

      If the original author used Module::Pluggable, but did not remove '.' from @INC, then the original author intended to load unspecified modules on purpose from '.'

      There is no contradiction

        It seems that also apt-get did load files from /tmp, which likely was not the intended consequence. It was arguably a bug in apt-get, but making the intent explicit is certainly the better approach here.

Re^10: 'do' command is dead? Surely not?
by dsheroh (Prior) on May 20, 2017 at 09:12 UTC
    Yes, the program does expect the module to exist. But that expectation can be incorrect.

    I don't know about you, but I frequently get Perl code (usually things written by coworkers...) which doesn't properly document its dependencies, resulting in attempts to load modules which aren't installed on the machine.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1190667]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2019-10-17 05:19 GMT
Find Nodes?
    Voting Booth?