I see no problem with adding "use lib '.';" provided you:
- preceed it by
BEGIN { chdir("/abs/path") or die "Can't chdir to /abs/path: $!\n" }
- be very careful to prevent "others" from getting "write" access to /abs/path
This last item could even involve checking the permissions on the directory from within the script.
-
tye
(but my friends call me "Tye")