in reply to Stringification of MockObjects

Beats me, though it's very close to bedtime here. I tried the following to no avail:

my $tmoe = Test::MockObject::Extends->new( $foo ); overload::OVERLOAD( ref $tmoe, '""' => sub { "mock stringy\n" }, 'fallback' => sub { "default mock overload\n" } );

My guess is that the magic's not registering properly, though I have no idea why that should be. Calling ("" directly works.

Replies are listed 'Best First'.
Re: Re: Stringification of MockObjects
by water (Deacon) on May 23, 2004 at 01:44 UTC
    so..........

    am i out of luck?

    the serious magic of M:O:E are well beyond this Water's small brain...

    what ought I try next?