in reply to Test mocking sth bind_param_inout

The first argument to the mocked method is the invocant. I think you mean instead:

$msth->mock('bind_param_inout',sub { ${ $_[1] } = 11; });

Replies are listed 'Best First'.
Re^2: Test mocking sth bind_param_inout
by Anonymous Monk on Sep 01, 2006 at 11:06 UTC
    Jeez - will go and slap myself now - don't want to total the time I spent looking in the wrong place. Had missed the point on the reference there as well. Many thanks.