use lib; BEGIN { # Code to figure out which libraries you want to load. lib->import("your_library"); }