Can i still install modules myself manually by simply copying the files to my machine and using the 'use lib' command to point to their location?
When you talk about installing modules, are you talking about your own .pm files, or modules from CPAN? If it's your own Perl code then copying the files is fine, but for CPAN modules there are better ways. This is because many modules use compiled C code and rely on other shared libraries, so it's not always as simple as copying files.
If you have admin access on the Ubuntu server then for most commonly used modules you can use the system package manager to install from the Ubuntu repositories and automatically resolve any dependencies. For example to install the DBD::Pg module you might use the command:
sudo aptitude install libdbd-pg-perl
If you have console access you can also use the Synaptic package manager to search and install packages from the GUI.
To install less commonly used modules that aren't available from the Ubuntu repositories then you should use a CPAN shell like: sudo cpan
If so, is there a place where perl modules should be located by convention
When modules are installed using the system package manager they end up under /usr/lib, but you shouldn't manually install any files under there. If you have admin access then your files would typically go under /usr/local/lib but otherwise they should go under your home directory as suggested by zentara.
In reply to Re: How to use 'use' statement on Ubuntu
by grantm
in thread How to use 'use' statement on Umbuntu
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |