Re: How can i make a perl program lauch another perl program that takes options
- From: alex.jamestin@xxxxxxxxx (Alex Jamestin)
- Date: Fri, 29 Jun 2007 20:04:52 +0530
Okay,
system returns a 0 if it executes successfully. So then, die is called
only if system returns anything other than a 0.
And in the old code system would return a 0 after calling perl. This
would short-circuit and call die.
Makes sense :) Will try out and reply.
Thx,
Alex
On 6/29/07, Chas Owens <chas.owens@xxxxxxxxx> wrote:
On 6/29/07, Alex Jamestin <alex.jamestin@xxxxxxxxx> wrote:.
> Thanks Chas,
> This does work. So there's no problem with perl itself. I guess now,
> i'll have to take a look at vplan_all.pl.
>
> The sucky thing is that road is too much of pain to go down. (Though
> now i don't think ill be able to sleep without thinking about this :))
> Oh well, Bug begets bug :)
>
> Anyways,
> thx again for helping out
> Alex
>
I don't think the problem is in vplan_all.pl. I looked back at your
original code and noticed a bug:
system( "perl vplan_all.pl 5.6 24.0")
or die "Couldn't run the vplan_all.pl script: $!\n";
This should be
system( "perl vplan_all.pl 5.6 24.0") == 0
or die "Couldn't run the vplan_all.pl script: $!\n";
- Follow-Ups:
- Re: How can i make a perl program lauch another perl program that takes options
- From: Alex Jamestin
- Re: How can i make a perl program lauch another perl program that takes options
- References:
- How can i make a perl program lauch another perl program that takes options
- From: Alex.Jamestin+Usenet@xxxxxxxxx
- Re: How can i make a perl program lauch another perl program that takes options
- From: Chas Owens
- Re: How can i make a perl program lauch another perl program that takes options
- From: Alex Jamestin
- Re: How can i make a perl program lauch another perl program that takes options
- From: Chas Owens
- Re: How can i make a perl program lauch another perl program that takes options
- From: Alex Jamestin
- Re: How can i make a perl program lauch another perl program that takes options
- From: Chas Owens
- How can i make a perl program lauch another perl program that takes options
- Prev by Date: Re: How can i make a perl program lauch another perl program that takes options
- Next by Date: Re: How can i make a perl program lauch another perl program that takes options
- Previous by thread: Re: How can i make a perl program lauch another perl program that takes options
- Next by thread: Re: How can i make a perl program lauch another perl program that takes options
- Index(es):
Relevant Pages
|
|