use lib '/full/path/to'; require 'script.pl'; 

    1 answer 1

    use lib "simplifies the manipulation of @INC at compile time." in particular, in this case, adds / full / path / to to @INC (the list of paths in which libraries are searched). Therefore, in the future, to connect /full/path/to/script.pl, it is enough to specify only the name script.pl, without the full path.

    require is a directive, among other things, for connecting libraries without importing their symbols.