On Fri, 2006-07-21 at 00:36 +0530, Shourya Sengupta wrote: > > Hi Joshua, > Can you make it a bit clear?
Assuming you've written a perl module (class) called 'Widget::Factory' the actual code should be in a file called 'Widget/Factory.pm' (assuming a UNIX like system). Lets further assume that the full path to this module is '/usr/local/perl5/site_lib/Widget/Factory.pm'. Now, you can use this module by adding the following to the top of your script: ... use lib '/usr/local/perl5/site_lib'; use Widget::Factory; ... The 'use lib' statement causes Perl to add that directory to the list of directories that it will search to find 'Widget::Factory'. HTH -- Joshua Colson <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>