Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Moose: Exporting non-moose subs to child

by Khen1950fx (Canon)
on Jul 21, 2011 at 08:40 UTC ( [id://915814]=note: print w/replies, xml ) Need Help??


in reply to Moose: Exporting non-moose subs to child

It's a bug that has been resolved. Here's my workaround:
package Parent; use Moose; use Test::Most tests => 1, '-Test::Deep'; sub BUILD { my ( $self, $args ) = @_; if ( $args->{'tests'} ) { plan tests => $args->{'tests'}; } } package Child; use Moose; use Test::Most '-Test::Deep'; extends qw(Parent); sub run { my ($self) = @_; ok( 1, 'simple test' ); } __PACKAGE__->new->run;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://915814]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found