in reply to Re^2: Google::Search error
in thread Google::Search error

If, as stated, it were "...(doing) this without any code at all!" there would be no reference to Ln 9 as the error source. Recheck your premises.

Replies are listed 'Best First'.
Re^4: Google::Search error
by astroboy (Chaplain) on Nov 13, 2013 at 20:14 UTC
    Recheck *your* premise by reading the post more carefully - the next sentence after the one you selectively quoted is "use Google::Search; is all is takes to throw the error." And indeed, when I try the same thing, I receive the same error.

      When you say you've tried the "same thing" do you mean that you've seen OP's code? Otherwise, that statement is a guess... and a guess doesn't count.

      Two additional points:

      1. use Foo::Bar; is code.
      2. OP has NOT shown us what is on Ln 9; is Ln 9 the use... statement?"

        OP has NOT shown us what is on Ln 9; is Ln 9 the use... statement?"

        ww When is the last time you read the error message?

        overload arg '' is invalid at C:/Perl64/site/lib/Google/Search/Error.p +m line 9

        Hmm, errormessage at filename line linenumber

        Where is the error? Google/Search/Error.pm line 9

        Let see Google/Search/Error.pm line 9

        package Google::Search::Error;
        
        use Any::Moose;
        use Google::Search::Carp;
        
        use overload
            "" => \&reason,
            fallback => 1,
        ;

        Its a typo, I supposed its supposed to be '""'