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 <[EMAIL PROTECTED]> wrote:
On 6/29/07, Alex Jamestin <[EMAIL PROTECTED]> 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";
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/