in reply to Re^4: are installed modules relocatable?
in thread are installed modules relocatable?

i used mechanize.pm as an example

Then you're seeking a generic answer and I had already given that.

it would break if you move mechanize.pm into another directory not named www

Correct, you are not free to change the directory structure, just to copy or move it. (At least, not without making additional changes.) Your library directory is .../lib/, not .../lib/WWW/.

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?

In general, this won't work because the module's import won't get found. Again, you are not free to change the directory structure, just move it.