Re: How can i make a perl program lauch another perl program that takes options
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Fri, 29 Jun 2007 16:01:36 -0700
On 6/29/07, Alex Jamestin <alex.jamestin@xxxxxxxxx> wrote:
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! :\
Could it be that you have a different $PATH, a different directory or
other envronment changes? If your perl binary is properly built and
installed, it should be capable of running another perl.
system("perl", "-lwe", "print q(perl works!)") == 0
or die "Can't call perl: $!";
Cheers!
--Tom Phoenix
Stonehenge Perl Training
.
- 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
- How can i make a perl program lauch another perl program that takes options
- Prev by Date: Re: Adding a line in a file inside many directories
- Next by Date: Re: how to get references from imbricated capturing parenthesis ?
- Previous by thread: Re: How can i make a perl program lauch another perl program that takes options
- Next by thread: missing curly - brain fried
- Index(es):
Relevant Pages
|