in reply to Re^2: Your favorite objects NOT of the hashref phylum in thread Your favorite objects NOT of the hashref phylum
Thanx, sometimes I forget the simplest things.
I just needed a quick example illustrating the Stopwatch.
I guess the reason I forgot about time is that there are so many similar functions (time, times, gmtime, localtime, asctime, mktime, andwhatnottime).
It's good to have the backticks if you got lost but know a non-perl alternative.
Re^4: Your favorite objects NOT of the hashref phylum
by xdg (Monsignor) on Mar 23, 2006 at 20:48 UTC
|
Thanx, sometimes I forget the simplest things
Me, too. Sometimes, I find there's nothing for it but a good skim through perlfunc, which has a nicely categorized list of all the built-in functions (and has all the long descriptions that perldoc -f gives you).
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
| [reply] [d/l] |
|
perlfunc is a fine thing. I prefer searching it directly over using for example perldoc -f time. You can always hit /^\s+time and then n some times until you find the function record.
This is slower and sometimes you have to hit n a couple of times. The good thing is you learn/remember the rest of the functions.
| [reply] |
|