How can I pass arguments from one Perl script to another?
问题 I have a script which I run and after it's run it has some information that I need to pass to the next script to run. The Unix/DOS commands are like so: perl -x -s param_send.pl perl -x -s param_receive.pl param_send.pl is: # Send param my $send_var = "This is a variable in param_send.pl...\n"; $ARGV[0] = $send_var; print "Argument: $ARGV[0]\n"; param_receive.pl is: # Receive param my $receive_var = $ARGV[0]; print "Parameter received: $receive_var"; But nothing is printed. I know I am doing