Social Icons

Pages

Showing posts with label require. Show all posts
Showing posts with label require. Show all posts

Friday, 26 September 2014

Difference Between use and require in perl

This question is asked in many technical interviews which required knowledge of perl.

Require:

  1. Usage: require EXPR
  2. if EXPR is a numeric value, then script demands that i requires specified version of perl.
  3. if EXPR is not numeric, then i assumes that EXPR is name of file to be included in script.
  4. The included file must return true as last statement.