Page 1 of 1

Perl: system call not work

Posted: Tue Feb 28, 2006 8:54 am
by vietboy505
I have a script to call the other script.

hello.pl

Code: Select all

#!/usr/local/bin/perl

print("Hello " . $ARGV[0] . "\n\n");

test_hello.pl

Code: Select all

#!/usr/local/bin/perl

$script='hello.pl';
system("$script Dave");
How can I make this possible to work for both in UNIX & Windows?