On 10/15/06, perl pra <[EMAIL PROTECTED]> wrote:

I have to call some perl scripts with command line arguements from another
perl script.

(some thing like this)

perl -s  -a  $ENV{X}  -b $ENV{Y} -c $ENV{Z} ;   ( -a , -b, -c  are also the
arguments to call the script)

my @args = ('-a', $ENV{X}, '-b', $ENV{Y}, '-c', $ENV{Z});
my $command = 'frobnitz';
my $result = system $command, @args;

Is that all you needed? The system() function is documented in
perlfunc. Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to