in reply to use, require, do or what?
The solution is to encapsulate the code in the library into a subroutine, and call that:
require "./Library.pl"; my $variable1 = sub_from_library(); print "$variable1\n";
Even better: make the library a module, and then use it.
|
---|