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

If a module can use several optional components or, for example, uses Module::Pluggable, then a module not specified by the original author can very well be loaded.

See JSON::Any, Mouse, Module::Pluggable.

  • Comment on Re^10: 'do' command is dead? Surely not?

Replies are listed 'Best First'.
Re^11: 'do' command is dead? Surely not?
by Anonymous Monk on May 25, 2017 at 00:12 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.