Shouldn't that have a relevant overhead when used as:
while ($line = <F>) { chomp($line); $line = rarely_called($line) if $asciify; ... }
BTW, I did something like that (using eval), but checking a flag to require the module only in the first call.
In reply to Re^6: Use module only if it is in use
by vitoco
in thread Use a module only if it is in use
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |