Re: How can i make a perl program lauch another perl program that takes options

2007-06-29 Thread Alex Jamestin
Tried that but it still won't work. Doh! Stupid bug :\ I'd run this test script below - #! /usr/bin/perl use strict; use warnings; my $vplan_parent_path = "\/pdd\/qes\/vsuites\/vplan"; system("perl $vplan_parent_path\/vplan_all.pl") == 0 or die "perl blew up: $!"; And the o/p got is - vp

Re: How can i make a perl program lauch another perl program that takes options

2007-06-29 Thread Alex Jamestin
Bug begets bug :) Anyways, thx again for helping out Alex On 6/29/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 6/29/07, Alex Jamestin <[EMAIL PROTECTED]> wrote: > Sorry forgot about that.. I'm running it on FreeBSD/i386 accessed via. > a terminal prog. I have a FreeBSD box handy,

Re: How can i make a perl program lauch another perl program that takes options

2007-06-29 Thread Alex Jamestin
, 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 muc

Re: How can i make a perl program lauch another perl program that takes options

2007-06-29 Thread Alex Jamestin
Well, i tried both the options - system("perl vplan_all.pl", "5.6", "24.0") == 0 or die "blah"; or system( "perl", "vplan_all.pl", "5.6", "24.0") == 0 or die "blah"; I think when perl -> shell -> perl . Here perl doesn't seem to understand that vplan_all.pl is the script name and