Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Conditionally override 'time' builtin with Time::HiRes::time()

by chip (Curate)
on Apr 30, 2004 at 00:29 UTC ( #349305=note: print w/ replies, xml ) Need Help??


in reply to Re: Conditionally override 'time' builtin with Time::HiRes::time()
in thread Conditionally override 'time' builtin with Time::HiRes::time()

Nice use of if.pm, Fletch, but points off for unnecessary package variable.

my $phase; BEGIN { $phase = shift || int(rand 100) } use if $phase > 42, Time::Hires => qw( time );

    -- Chip Salzenberg, Free-Floating Agent of Chaos


Comment on Re: Re: Conditionally override 'time' builtin with Time::HiRes::time()
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://349305]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2014-12-29 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (192 votes), past polls