Snail Posted June 20, 2007 Report Share Posted June 20, 2007 If i have a perl function i want to use in multiple files, is there a simple way i can just call another Perl script from a perl script, and import all the associated variables, without compiling into a module? Link to comment Share on other sites More sharing options...
Snail Posted June 20, 2007 Author Report Share Posted June 20, 2007 Answered my own question now For the record, i used the require keyword, so at the top of my script i have.. require('common_functions.pl'); and the script that calls it inherits any variables created in the common script, which is exactly what i wanted, fantastic!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now