That's identical to Perl or pretty much any other dynamic language. Just as in Python, you can even modify your library path within the code itself, and use relative paths (so you can distribute apps in a directory and not require the end user to modify their webserver CGI shell execution environment).