andromeda08 has asked for the wisdom of the Perl Monks concerning the following question:

i'm writing a perl program for listing of search results from google so i'm using Google::Search...
every time i try to run my program it lists this error:
can't locate object method "can_be_inlined" via package "Moose::Meta:: +Method::Constructor" at c:/Perl/site/lib/Class/MOP/Immutable.pm line +160. Compilation failed in require at google.pl line 3. BEGIN failed +--compilation aborted at google.pl line 3
line 3 is: use Google::Search;

i have Google::Search and Moose modules instaled.

could anyone please help me

Replies are listed 'Best First'.
Re: google search
by Anonymous Monk on Dec 18, 2008 at 16:26 UTC
    i have Google::Search and Moose modules instaled.
    But what versions? Upgrade.
      well i reinstalled them an hour ago, so they are up to date

        Your error says that the modules are not compiling properly, specifically because an expected method name is not being resolved. On my system, I got those modules to play nice with:

        Moose 0.63 Test::LongString 0.11 Test::Exception 0.27 Sub::Uplevel 0.1901 Class::MOP 0.73 Sub::Name 0.04 Sub::Identify 0.04 Devel::GlobalDestruction 0.02 Scope::Guard 0.03 Sub::Exporter 0.981 Params::Util 0.35 Sub::Install 0.924 Data::OptList 0.103 Task::Weaken 1.02 MRO::Compat 0.09 List::MoreUtils 0.22 Google-Search 0.02

        I note that your path was DOS format, so if you are using ActiveState perl, you can fire up the GUI for ppm and it'll show you both the versions on the modules you have installed and any that can be upgraded.

        well i reinstalled them an hour ago, so they are up to date
        That is an assumption. What versions? And versions of pre-requisites?