in reply to Enforcing formal arguments at compile time?

I tend to use Carp::Assert for this type of stuff.
use Carp::Assert; sub foo { is(scalar @_, 2) if DEBUG; }
That way when your code goes into prodution you can have Perl optimize away the assertions by changing the use to a no
no Carp::Assert;
I definately dislike it when code uses prototypes for doing this type of thing. The trade-offs are unacceptable.

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.