What is difference between “Use” and “require”

By | February 18, 2009

Use :

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

2. The included objects are verified 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

Leave a Reply

Your email address will not be published. Required fields are marked *