Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^3: Net::Twitter - fatal , but no error?

by tobyink (Abbot)
on Feb 08, 2013 at 13:44 UTC ( #1017822=note: print w/replies, xml ) Need Help??

in reply to Re^2: Net::Twitter - fatal , but no error?
in thread Net::Twitter - fatal , but no error?

I assume the message about debugging was coming from some sort of web interface that is wrapping your code - your "admin backend"?

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
  • Comment on Re^3: Net::Twitter - fatal , but no error?

Replies are listed 'Best First'.
Re^4: Net::Twitter - fatal , but no error?
by ultranerds (Friar) on Feb 08, 2013 at 13:52 UTC
    Ah good point... didn't think of that! Its saying:
    Couldn't load class (Net::Twitter::Role::API::REST) because: Roles do +not currently support ARRAY references for around method modifiers at + /usr/lib64/perl5/vendor_perl/5.10.1/x86_64-linux/Moose/ l +ine 293 Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.10.1/x +86_64-linux/Class/ line 114.
    Not too sure what that means? I got the host to upgrade Net::Twitter to the latest version, but that doesn't seem to be helping.



      It's claiming that roles don't support array references for around method modifiers... i.e. Moose stuff. It's saying that this doesn't work...

      use v5.14; package Local::Role { use Moose::Role; around [qw/ a b /] => sub { say "constant access" }; } package Local::Class { use Moose; with 'Local::Role'; use constant { a => 1, b => 2 }; } # Should print "constant access" twice Local::Class->a; Local::Class->b;

      On my machine, the above does work though, so it's likely that you're running a very old Moose/Class::MOP. Judging from Moose::Manual::Delta this may have been introduced in Moose 0.95; current version is 2.0604.

      package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
        Ah - maybe its an old version of Moose then. I've emailed my host to check up.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017822]
[TStanley]: I am heading to Arlington, Virginia next week, then I get to spend an entire week at home. Looking forward to that as I will have spent 7 weeks on the road by the end of next week
[talexb]: That's a long road trip. I haven't travelled for business in years.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-06-23 14:25 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (548 votes). Check out past polls.