http://www.perlmonks.org?node_id=349305


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