Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Answer: How do I run another program from within my Perl program

by vroom (Pope)
on Jan 18, 2000 at 23:56 UTC ( #2154=categorized answer: print w/replies, xml ) Need Help??

Q&A > programs and processes > How do I run another program from within my Perl program - Answer contributed by vroom

use the system function or backticks(`) if you want to collect the output;
system "update"; my $datestr=`date`; print "Date output: $datestr\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2020-10-20 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (209 votes). Check out past polls.

    Notices?