in reply to Extract the source code after loaded fully

Could you post the code snippet you're using, and show where you need to wait? Perhaps sleep() will do what you need, but it's difficult to tell without seeing what's going on.

-stevieb

Replies are listed 'Best First'.
Re^2: Extract the source code after loaded fully
by Anonymous Monk on Jun 21, 2015 at 15:23 UTC
    Here is my sample code. i am getting the source code in the $res variable. Initially i am loading the wait message. the page will take some seconds to load. So we need to wait/sleep before extracting the source code
    use lwp::useragent;
    my $ua=lwp::useragent->new();
    my $res= $ua->get(http://mytestpage.com);
    if ($res->is_success){

    }