CoolInterview.com - World's Largest Collection of Interview Questions
 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 is a subroutine?


    Category Perl Interview Questions
    Rating (0.0) By 0 users
    Added on 7/19/2006
    Views 804
    Rate it!
    Answers:

    A subroutine is like a function ... called upon to excecute a task.



    When we are defining a function we have to use sub keyword in front of function name.

    syntax:
    sub functionname
    {
    statement;
    }
    Example:
    if($a>0)
    {
    &fun();
    }
    sub fun
    {
    print "hai";
    }



     Posted by: Gansi    

    Contact Gansi  Contact Gansi


    If you have the better answer, then send it to us. We will display your answer after the approval.
    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 does 'qw(..)' mean? What's the use of it?
    when do we use it?

    View Answer
    what does this symbol mean '->'

    View Answer
    what is meant by a 'pack' in perl?

    View Answer
    what is meant by 'chomp'? where do we require this ?

    View Answer
    what does this mean '$^0'? tell briefly plse..

    View Answer
    what's is the use of 'require' and what does this mean?

    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. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:

    View ALL Perl Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2009 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions
    Page URL: http://www.coolinterview.com/interview/6188/default.asp?cachecommand=bypass


    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | Joke of the Day

    0.41