in reply to Testing if machine has LWP... not working

Don't use string-eval, use block eval instead: eval { require LWP::UserAgent}