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.
In reply to Re: use, require, do or what?
by moritz
in thread use, require, do or what?
by AKSHUN
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |