Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 taking refuge in the Monastery: (4)
As of 2015-07-28 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls