in reply to Enable cookie

Try adding the following (lifted and adapted from the LWP::UserAgent docs) just before your get() call:

$lwp->cookie_jar({ file => "$ENV{HOME}/.cookies.txt" });

You may wish to specify a different file name for the cookies, or possibly a temporary file that is removed at the end of execution if you do not wish that data to be retained.

Hope that helps.