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!

running a perl file from another perl file

Status
Not open for further replies.

bcdixit

Technical User
Nov 11, 2005
64
US
I want to run a perl file2 from a main perl file1. what function do I use?.. do .. require.. ???

Also, I want to check if the file2 ran successully or not and exit from the main perl file1 and report the error to a log if the execution of the file2 failed?

How do I capture that error message?

any ideas.

thanx
-bcd
 
Try:
system("file2.pl");
(It works on ActiveState.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top