Wednesday, February 18, 2009

What is difference between "Use" and "require"

Use :

1. The method is used only for the modules(only to include .pm type file)

2. The included objects are varified at the time of compilation.

3. No Need to give file extension.

Use: only for modules, included objects are verified at the time of compilation

Require:

1. The method is used for both libraries and modules.

2. The included objects are verified at the run time.

3. Need to give file Extension.

Require : both library and modules, at the time run time


No comments: