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 :) Time for sleep! Regards, Jonathan Rockway Jonathan Rockway wrote: >> I do not think that prototype means what you think it means. > > It means what I think it means. Same syntax as we have currently, no. > You would have to do this: > > my @methods = qw(foo bar baz) > can_ok($object, @methods, 'reason') > > Instead of: > > can_ok($object, qw(foo bar baz), 'reason') > > Note that in my original post I specified "array" instead of "list" for > a reason :) > > Regards, > Jonathan Rockway >
signature.asc
Description: OpenPGP digital signature