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