in reply to How to use require...
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: How to use require...
by kiat (Vicar) on Jan 03, 2004 at 07:33 UTC | |
by merlyn (Sage) on Jan 03, 2004 at 08:04 UTC | |
by kiat (Vicar) on Jan 03, 2004 at 10:59 UTC | |
by merlyn (Sage) on Jan 03, 2004 at 18:29 UTC | |
by kiat (Vicar) on Jan 04, 2004 at 01:48 UTC |