in reply to using variables in lwp::simple

You can try to install HTTP::Recorder to see whats happens with your request.