in reply to Automate google search

What is this line supposed to do:

$go->field('q','hello',1)

What is this line supposed to do:

if($go->on_event()) ...

Also, where do you have your print statement in the code you posted?

Replies are listed 'Best First'.
Re^2: Automate google search
by zakkotron (Initiate) on Jun 27, 2011 at 16:38 UTC
    $go->field('q','hello',1)

    this will set the text hello in google search query

    $go->on_event()

    this means that the event has completed

    print 1

    as i have already said in my post that i was testing my program with print statement and it was not getting printed in my program but i was still getting the result

      I'm asking these questions because I wonder where you found that usage of WWW::Mechanize::Firefox, and where it was documented to work. Because to my knowledge, neither the three arguments to ->field nor ->on_event() are documented, and ->on_event() makes no sense.

        it seems i got confused,thanks for pointing it out