The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Installing Perl Module surjithss Shell Programming and Scripting 2 03-26-2008 09:51 AM
Perl module question hankooknara Shell Programming and Scripting 3 07-08-2007 04:26 AM
perl module question convenientstore Shell Programming and Scripting 1 05-22-2007 04:25 PM
Replace Perl Module name in all Perl scripts rahulrathod Shell Programming and Scripting 2 12-01-2005 09:00 PM
perl module DBD-Oracle hassan1 UNIX for Advanced & Expert Users 1 07-11-2005 05:22 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2008
Registered User
 

Join Date: Apr 2007
Posts: 44
Stumble this Post!
Perl module Convert::IBM390

Hi,

Need urgent help.
I want to use this module Convert::IBM390 but we dont have admin rights on our Unix box so can't login as root.

Is there any other way where we can use this module or can it be converted to a program.

Please help.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-01-2008
Registered User
 

Join Date: Jan 2008
Posts: 308
Stumble this Post!
You can use the "lib" pragma to use modules in your perl script. I just expalined how to do this on another forum, let me copy and paste that reply here....


If it is not a module with lots of dependencies (although you can still do it this way if it is) you use the "lib" pragma to include your own module directories into perls @INC array. Say you have a module named Foo::Bar.

Foo is the directory the module is stored in and the module is named Bar.pm. You can create a Foo directory in any folder on your website, but best to use one that is not www accessible. People often name it mymodules or cpanmodules. In that folder you duplicate the modules structure, so you create a folder named Foo in mymodules folder and place Bar.pm in the Foo folder. Then in your perl script:

use lib qw(path/to/mymodules);
use Foo::Bar;
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0