CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS LANGUAGES PERL DETAILS
    Question :
    what's is the use of 'require' and what does this mean?


    Category Perl Interview Questions
    Rating (1.2) By 181 users
    Added on 7/19/2006
    Views 2344
    Rate it!
    Answers:

    Require is a call to an external essential script or module, without which the current script/program will not proceed any further.



    require function is used to load a seperate perl script or module in run time.If the file to be loaded is not in the directories listed in @INC array then full path of the perl file is to be passed in the require function .

    ex . require "require.pl";
    require "Mymodule.pm";
    The location of perl file require.pl should be in directories listed in @INC.

    otherwise give fullpath - require"/home/user/require.pl";

    Once the perl file is loaded INC variable is updated with latest loaded perl file as key and its location as value .That's why before loading perl file require function checks if the file is already there in INC.If file is there then it'll not load the file.



    Posted by: sandeep    

    Contact sandeep Contact sandeep

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    what is meant 'die' in a perl program?

    View Answer
    what is a DataHash(). What does it mean? and for what purpose it is used??

    View Answer
    What is CPAN ? What are the modules coming under this?




    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Perl Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 1.5625 Seconds