You don't need root access to install a module. You simply need to save it into a specific location such as /usr/local/path/to/MyModules/ModName.pm. Then include the module in your code using the lib pragma, like so:
#!/usr/bin/perl -w use strict; use lib "/usr/local/path/to"; # Notice where this path ends... :) use MyModules::ModName; # Other use statements... # ...on with other code...
This should work as long as the module is packaged into 'MyModules::ModName'. If it's a pre-existing module you're working with, alter the path in the lib statement and name in the use statement, accordingly. :)
At least that's the way I've done it. If this is incorrect, I'm certain someone will correct me. I'd even go so far as to appreciate it! :)
Hope this helps,
/Larry
In reply to Re^2: jpg file demensions
by larryp
in thread jpg file demensions
by kmarshall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |