in this case you might consider using modules

so, then you can do something like this in x1.pl

use SOME_PACKAGE_NAME;
$obj = new SOME_PACKAGE_NAME;

#do x1 stuff
$obj->call_x2_functions($arg1, $arg2);
#call various functions to do x2 things

print "some output";
#done with program

other things you should look into is the 'require' 
I'm not too verse in that, so I can't comment much further.

-Akshay

Jennifer Pan wrote:
> 
> I  have two perl programs
> 
> x1.pl and x2.pl
> 
> In x1.pl, I really want to call x2.pl as a function to finish the task,
> is there a way to pack them so they can use one another?
> 
> thank you!
> 
> -Jennifer
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
http://www.5vs1.com - A Pearl Jam Fan Site

"Only when the last tree is dead, the last river damned, and the last
field paved, will we realize that we can't eat money."

"Time is long and life is short, so begin to live while you still can."
                        -Eddie Vedder

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to