On the third question, try, my $cnt = keys %hash; which gets the size by placing keys in scalar context. The scalar function may be useful if you want to do that on the fly in list context, like, print scalar keys %hash; As for the rest, hashes generally use a lot of memory for the size of data stored. Think twice about turning a bunch of them loose on a potentially large slurpy pile of data.
If a scheduled job exits after each run, its memory is returned to the system, so repetitions don't crank up usage. That applies to forked jobs as well as cron scheduling.
After Compline,
Zaxo
In reply to Re: Memory /speed questions
by Zaxo
in thread Memory /speed questions
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |