You can place "require" anywhere you want.  If you use "require" inside a
sub it will be the same as if you placed it at the top (except for the fact
that the subs in the file won't be available until you "require" it).

Rob


-----Original Message-----
From: Agustin Rivera [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 12:01 PM
To: [EMAIL PROTECTED]
Subject: "require"


I use require 'scripts/lib/pollstarpm' for often used functions in most of
my scripts.  The question is this.. do I always have to declare "require"
near the top or can I "require" only when I need it?  If so, what happens if
I "require" during a subroutine?

As always, many thanks.
Agustin Rivera
Webmaster, Pollstar.com
http://www.pollstar.com





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to