On 7/16/06, Jonathan Rockway <[EMAIL PROTECTED]> wrote:
I retract my previous comment. My prototype was, in fact, completely
bogus :)
Let's make that array a reference to a list and everyone will be happy:
can_ok($object, [qw(foo bar baz)], 'reason');
Hopefully that works and makes sense. If !ref $_[1], then just treat it
as a single method name. Everyone's happy :)
Except the backwards compatibility police. You're under arrest.
can_ok( $object, $method, $reason );
is indistinguishable from the current syntax:
can_ok( $object, $method1, $method2 );