The problem is that if you have warnings on, you'll get a "subroutine redefined" message. You can turn your login library into a login ".pm" file rather easily and then you can use autouse, which is core.sub do_login { require "login.pl"; goto &do_login; }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: How to use require...
by merlyn
in thread How to use require...
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |