hi,
i have 2 perl scrips, a.pl and b.pl.
i want to call b.pl from a.pl and once b.pl is executed, would like to return value from b.pl to a.pl.
######## a.pl ##############
$test = `./b.pl 1`;
print "file a: $test \n";
####### b.pl ##############
print "file b: $ARGV[0] \n";
return 100;
the content of a.pl and b.pl are as shown above.
if i execute a.pl, i get the following output
#######################################################
file b: 1
Can't return outside a subroutine at b.pl line 2.
file a: 7424
can anyone say what is the mistake ??
thanks in advance
hema