Thanks a lot Joshua and Timothy.
This was exactly what I was looking for.
Your responses will help me a lot.

Regards,
Shourya


-----Original Message-----
From: Joshua Colson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 12:57 AM
To: Shourya Sengupta
Cc: beginners@perl.org
Subject: RE: Object oriented programming with perl

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]>


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to