meonkeys has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; my $time = time; print "$time\n";
How do I conditionally override the time Perl builtin with Time::HiRes::time() without adding parentheses to the call to time (ie, I want use subs behavior for the Time::HiRes::time() function)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Conditionally override 'time' builtin with Time::HiRes::time()
by Fletch (Bishop) on Apr 30, 2004 at 00:08 UTC | |
by chip (Curate) on Apr 30, 2004 at 00:29 UTC | |
by meonkeys (Chaplain) on Apr 30, 2004 at 00:29 UTC | |
by chip (Curate) on Apr 30, 2004 at 00:33 UTC |