in reply to Perl script to login into one url and again need to use the url

Hello jitender

Welcome to the Monastery. Please use the <code> tags on you code. It is really difficult to review your code when it is not formatted.

Update: I think all you need is to follow the recommendations of this tutorial LWP::UserAgent and Basic Authentication.

Looking forward to your update, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!