Use as:my $now = sub (return scalar(localtime time)); # Creates a subroutin +e reference
print $now->(), .... # Makes a call to the sub, each time $now->() +is used
"As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom
In reply to Re: How can I timestamp each printed statement?
by NetWallah
in thread How can I timestamp each printed statement?
by johnnybongo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |