Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is there a way to define a unix l

Status
Not open for further replies.

sumncguy

IS-IT--Management
May 22, 2006
118
US

is there a way to define a unix library inside the system() function ?


#! /usr/local/bin/perl -w
use lib '/store/eng/tools/health.lib';


sub DGT {
system (". /store/eng/tools/health.lib;");
}
&DGT
 
I don't think the system call will work as it basically opens up a new process and anything you define is defined on that other process.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;
 

Is there a way to use a ksh library inside a perl script ?
 
I'm not sure..

How about you tell us what your trying to accomplish. Maybe it's something that perl can already do.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top