in reply to using methods/modules ?

I assume that by "method" you mean "module". In theory, you can "use lib", but in general, you shouldn't assume that anything will work without installing (or at least building) the module first.

Installing modules isn't hard: most perl modules use the same sequence of commands for building / installing:

# perl Makefile.PL # make # make test # make install
As long as the modules don't include C/XS code, all you need to install them is a standard make command.

Some newer modules use Module::Build instead. Theoretically, you'll only need perl to build those (again, unless you need to compile C/XS code, in which case you'd need a working C compiler).

Personally, I tend to just use either the CPANPLUS or CPAN module to install stuff. It generally is a lot less hassle than trying to subvert the installation process, unless you know what you're doing. In other words, since you're new to perl, please don't mess about with this, and install the modules like they expect to be installed. You'll save yourself a lot of trouble.

See also A Guide to Installing Modules.

Replies are listed 'Best First'.
Re^2: using methods/modules ?
by Akhenaton (Initiate) on Jun 22, 2006 at 19:08 UTC
    Thank you lots of good stuff and I agree, I will just install them the way they are meant to be. Thanks.