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



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";

.



Relevant Pages

  • Re: PBS -- Exploring Space: the Quest for Life
    ... How does life elsewhere affect life on Earth? ... contaminated water every day? ... die from malaria. ...
    (talk.origins)
  • Re: OT: Health care in other countries
    ... die of something. ... of insurance in the 1970's--income was taxed, ... My experience is that Medicare pays about 30% of "list price", ...
    (sci.electronics.design)
  • Re: Digital is Dumb
    ... that historians will be pouring over their photographs once they die, ... Right, in my case it all ended up with me, including very old odd sized negatives of family members nobody knows anymore: another way for a negative to loose value... ... Regarding the historians, 1000 years from now they will want to analyze *any* of your pictures. ...
    (rec.photo.equipment.35mm)
  • Re: OT: Cheap luxobarge for sale
    ... <SNIP> ... these always die on the D16 engined cars ... likely to die in the time you own it. ... stuff and wonder why they never mention the A8/9), ...
    (uk.rec.motorcycles)
  • Re: "Liked to about" - Rural speech
    ... [snip various questions] ... What city is like unto this great city? ... He is like to die of hunger in the place where he ...
    (alt.usage.english)