Perl: system call not work
Posted: Tue Feb 28, 2006 8:54 am
I have a script to call the other script.
hello.pl
test_hello.pl
How can I make this possible to work for both in UNIX & Windows?
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");