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!

Perl Question

Status
Not open for further replies.

cparks73

MIS
Jul 22, 2004
12
US
Here's what I want to do

I want an if statement to run another script, how do I get er done?

if ($rows) {
run_this_perl_script.pl #what goes here???
}
else
error
}
 
perldoc -f system

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
do is also a possibility.
See perldoc -f do and this thread: thread219-876588

Also backticks or qx
See perldoc perlop and search for qx
 
not sure dude?

[tt]use IO::Socket;[/tt]

maybe?


Kind Regards
Duncan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top