Need help regarding usage of LWP:UserAgent;

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ynaveen9
    New Member
    • Sep 2012
    • 4

    Need help regarding usage of LWP:UserAgent;

    I am using this LWP::UserAgent; in quite a few applications. Now I am interested to know, is there any way to search for a given variable in a website. Let's say. I have a form which takes input from user.
    $user_input=$pa ge->param('input') ;

    if($response->content =~ m/$user_input/i) is not working???

    I know this will work for some string like
    if($response->content =~ m/Jazz/i)

    But I need to give a variable here. Please help.
Working...