Jun 21, 2007 #1 biobrain MIS Joined Jun 21, 2007 Messages 90 Location GB Dear All, I need some help in writing a perl script. Here is a pseudo code !/usr/bin/perl -w system (./spd.pl) IF system (./spd.pl) execute or true then system (./spd2.pl ) ElSE exit/die, Please help me writing this small script. Regards
Dear All, I need some help in writing a perl script. Here is a pseudo code !/usr/bin/perl -w system (./spd.pl) IF system (./spd.pl) execute or true then system (./spd2.pl ) ElSE exit/die, Please help me writing this small script. Regards
Jun 21, 2007 #2 ishnid Programmer Joined Aug 29, 2003 Messages 1,422 Location IE Code: my $result = system (./spd.pl); If the system call exits successfully, $result will be 0. If there was an error, it'll be something else. Upvote 0 Downvote
Code: my $result = system (./spd.pl); If the system call exits successfully, $result will be 0. If there was an error, it'll be something else.
Jun 21, 2007 #3 MillerH Programmer Joined Oct 20, 2006 Messages 919 Location US For executing other perl scripts, stick with "do" Code: [url=http://perldoc.perl.org/functions/do.html][black][b]do[/b][/black][/url] [red]'[/red][purple]spd.pl[/purple][red]'[/red][red];[/red] Dealing with all possible error contingencies is included in the documentation for the function. - Miller Upvote 0 Downvote
For executing other perl scripts, stick with "do" Code: [url=http://perldoc.perl.org/functions/do.html][black][b]do[/b][/black][/url] [red]'[/red][purple]spd.pl[/purple][red]'[/red][red];[/red] Dealing with all possible error contingencies is included in the documentation for the function. - Miller