in reply to use, require, do or what?

It doesn't work because $variable1 is only known in your client file, not in the library.

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.