> -----Original Message----- > From: Connie Chan [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 04, 2002 8:30 AM > To: [EMAIL PROTECTED] > Subject: use or require? > > > I 've read some doc about the difference of require and use... > but I don't know what exactly that all means ?... what is run > time and what is compile time ? all I hope to know is..... > which one will be faster and cost the minium loading vs time & > to the system, for a 1 time process.
If you haven't already, read: perldoc -q require "compile time" is a pass made through your entire script as it is started, in which the code is compiled to the internal bytecode format. "run time" is when the Perl interpreter is executing the bytecode. "use" happens at compile time, and "require" happens at run time. There really won't be any speed difference between the two. The main benefit of "require" is that you can conditionally load something. Otherwise, go with "use". -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]