in reply to Getting Time to work
A: No strictures, no warnings, no parameter validation.
A subroutine should always check its parameters. If you use Carp::Assert you can turn it off for production and on for development. If you had basic parameter validation then it would be clear to you that no parameters were being passed to the subroutine.
The merits of strict and warnings are discussed in so many nodes on this site it isnt funny. Peruse them, especially Use strict warnings and diagnostics or die
Also grinders comments are spot on.
Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.
|
|---|