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 18:40:59 +0530
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 5.6 and 24.0 are
options to be passed.
The exact same text ie. perl vplan_all.pl 5.6 21.0 works fine when i
just run it from the command line. Confusing! :\
On 6/29/07, Chas Owens <chas.owens@xxxxxxxxx> wrote:
On 6/28/07, alex.jamestin+usenet@xxxxxxxxx <alex.jamestin@xxxxxxxxx> wrote:.
snip
> I've tried bypassing the shell [ system(xxx,xxx,xx)] but that doesn't
> seem to help.
snip
Hmm, what OS are you using? And by system(xxx,xxx,xx) do you mean
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";
- Follow-Ups:
- 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
- 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
|