On Oct 11, Madhur Kashyap said:

Is there a way possible by which I can use a perl module without
installing it on the system? Some sort of equivalent for #include
"/home/madhurk/myClass.h" which exists in C/C++

I take it you mean, "how can I tell Perl to look in a certain place for a module?" By telling it so, with the 'lib' pragma:

  #!/usr/bin/perl

  use lib "/home/japhy/modules";
  use MySpecialModule;  # /home/japhy/modules/MySpecialModule.pm

Read 'perldoc lib'.

--
Jeff "japhy" Pinyan        %  How can we ever be the sold short or
RPI Acacia Brother #734    %  the cheated, we who for every service
http://www.perlmonks.org/  %  have long ago been overpaid?
http://princeton.pm.org/   %    -- Meister Eckhart

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