The goal here is to only load the *.pm file, pre-declare the functions or methods in it without actually compiling them. They are loaded on demand via AutoLoader's AUTOLOAD subroutine. If the functions/methods were in the same *.pm file, they would all be compiled at the time of use.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^5: alternative way to subs
by shmem
in thread alternative way to subs
by steph_bow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |