in reply to are installed modules relocatable?

Relocating perl itself won't work, but relocating modules should. After all, that's how ppm works. Specifically, it copes the blib/ dir that gets created when the module is built.

Replies are listed 'Best First'.
Re^2: are installed modules relocatable?
by aquarium (Curate) on Nov 08, 2010 at 23:52 UTC
    would it still work if you moved say Mechanize.pm to another directory and then tried to use www::mechanize?
    the hardest line to type correctly is: stty erase ^H
      If you're now asking about WWW::Mechanize specifically, you can easily answer that yourself.
        i used mechanize.pm as an example. so if scripts have "use www::mechanize" it would break if you move mechanize.pm into another directory not named www. the point (if any) i was trying to make is that moving installed modules can break scripts if the module is a sub-module. so you can't just move any/every module without some possible little problems. And if you do move (for example) mechanize.pm into a directory not named www and try to "use mechanize" instead, hopefully it still works and doesn't break ISA?
        the hardest line to type correctly is: stty erase ^H