CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
how can i open up one perl file through another perl

 



zoomer003
Novice

Jul 6, 2010, 1:36 PM

Post #1 of 2 (734 views)
how can i open up one perl file through another perl Can't Post

i want to open two perl files through third perl file ..

i have to files that i want to run simultaneously, therefore i want to make a third perl script so it could open both up ...


lukdk
Novice

Jul 6, 2010, 3:22 PM

Post #2 of 2 (729 views)
Re: [zoomer003] how can i open up one perl file through another perl [In reply to] Can't Post

hope this helps:

exec(PROGRAM);
$result = system(PROGRAM);

Both Perl's exec() function and system() function execute a system shell command. The big difference is that system() creates a fork process and waits to see if the command succeeds or fails - returning a value. exec() does not return anything, it simply executes the command. Neither of these commands should be used to capture the output of a system call. If your goal is to capture output, you should use the backtick operator:

$result = `PROGRAM`;

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives