Sorry, for some reason I'm blocked from emailing RoadRunner accounts, by
Roadrunner.

Here is a forward of an email I jsut sent you personally but bounced.  It's
Perl CGI related, so it's not offtopic for hte list ... but oculd be an
annoyance for some, possibly.

Dennis Stout
S.T.O.U.T. = Synthetic Technician Optimized for Ultimate Troublshooting

----- Original Message -----
From: "Dennis Stout" <[EMAIL PROTECTED]>
To: "Luinrandir Hernsen" <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 13 19
Subject: Re: question about perl.


> You're missing a } on the else line.
>
> $input = $ENV{QUERY_STRING};
> if ($input) {
> ####....The program...
> } else {
> ####..... w00t
> exec "game-log.pl";
> }
>
> :)
>
> Dennis Stout
> S.T.O.U.T. = Synthetic Technician Optimized for Ultimate Troublshooting
>
> ----- Original Message -----
> From: "Luinrandir Hernsen" <[EMAIL PROTECTED]>
> To: "Dennis Stout" <[EMAIL PROTECTED]>
> Sent: Thursday, March 27, 2003 13 12
> Subject: Re: question about perl.
>
>
> > $input = $ENV{QUERY_STRING};
> > if ($input) {
> > ####....The program....
> > else {
> > ####so you have to start at the log on screen
> >     exec "game-log.pl";
> > }
> >
> > The two perl programs are in the same cgi/game/ directory
> > but it doesnt work.
> > I even looked in the Visual Perl book and it should work..
> > any thoughts?
> > Thanks in advance
> > Lou
> >
> >
> >
> > ----- Original Message -----
> > From: "Dennis Stout" <[EMAIL PROTECTED]>
> > To: "Luinrandir Hernsen" <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, March 27, 2003 2:19 PM
> > Subject: Re: question about perl.
> >
> >
> > > If you are going to not even return to the program, exec.
> > >
> > > if (condition == true) {
> > >    exec "program";
> > > } else {
> > >    exec "otherprogram";
> > > }
> > >
> > > If you want to return to it but not do anything with the programs
output,
> > > system.
> > >
> > > if (condition == true) {
> > >    system "program";
> > > } else {
> > >    system "otherprogram";
> > > }
> > >
> > > If you DO want to keep the output of hte program, backticks.
> > >
> > > if (condition == true) {
> > >    my $output = `program`;
> > > } else {
> > >    my $output = `otherprogram`;
> > > }
> > >
> > > Hope it helps.
> > >
> > > Dennis Stout
> > >
> > > ----- Original Message -----
> > > From: "Luinrandir Hernsen" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, March 27, 2003 10 07
> > > Subject: question about perl.
> > >
> > >
> > > How do I run another perl program from within another perl program?
> > >
> > > if (x=0)
> > > {
> > > perl_ program_ 1.pl
> > > }
> > > else
> > > {
> > > perl_program_2
> > > }
> > > exit;
> > >
> > >
> > > --
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to