in reply to use lib connundrum

Just a guess - perhaps 'lib' doesn't understand ~user? try entering the full path:
use lib ( "/path/to/home/public_html/PERL_TEST/" );

-- Dan