Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Erm, that code doesn't compile because you have a bareword "gettimeofday". Since the importing hasn't taken place when the code in question is compiled it's not a valid sub name and is causing strict to complain.
As for why you're getting 0, since both instances of the string "gettimeofday" are treated as "0" when used as a number (which would have gotten you more gripes had you used warnings, but I digress) the difference between them is understandably also 0. Additionally: you might be interested in the if pragma to conditionally load things in a saner manner.
The cake is a lie. In reply to Re: Interesting behavior in eval block
by Fletch
|
|