Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 exploiting the Monastery: (3)
As of 2014-07-14 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (253 votes), past polls