in reply to Conditionally override 'time' builtin with Time::HiRes::time()
#!/usr/bin/perl use strict; BEGIN { our $phase_of_moon = shift || int(rand(100)); } use if $::phase_of_moon > 42, 'Time::HiRes' => qw( time ); my $foo = time; print $foo, "\n"; __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Conditionally override 'time' builtin with Time::HiRes::time()
by chip (Curate) on Apr 30, 2004 at 00:29 UTC | |
|
Re: Re: Conditionally override 'time' builtin with Time::HiRes::time()
by meonkeys (Chaplain) on Apr 30, 2004 at 00:29 UTC | |
by chip (Curate) on Apr 30, 2004 at 00:33 UTC |