Social Icons

Pages

Showing posts with label interview Questions. Show all posts
Showing posts with label interview Questions. 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.

Perl Interview Questions

Below are some perl interview questions which will be usually asked in a technical interview:


  • Difference between my, local and our in perl.
  • Difference between use and require in perl.
  • Perl referencing and dereferencing.
  • write regular expression to test a string whether the string is proper IPv4 address or not.