Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by chip (Curate)
on Apr 30, 2004 at 00:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://349305]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-19 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found