Perl: system call not work

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
vietboy505
Forum Commoner
Posts: 53
Joined: Wed Feb 22, 2006 9:30 am

Perl: system call not work

Post 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?
Post Reply