in reply to Passing Data between Scripts
And then..# upload.pl use vars qw($data); $data = "data to be shared"; require "/path/to/final.pl";
The require statement will just load the "final.pl" script and run it. The $data variable will be shared between the files because it's a global variable.# final.pl use vars qw($data); print $data; # or do something more interesting.
This will NOT redirect your browser, so it might cause some problems, but it is much easier to share data this way.
Also note this assumes the $data variables are in the same package.
HTH,
Joost.
|
|---|