Explain the meaning of subroutine.

devquora
devquora

Posted On: Feb 22, 2018

 

Subroutines accept an argument, perform the necessary operation and return the value. It is a named block of code, and often the term subroutine and function are used interchangeably. Subroutine takes the PROTOTYPE as the prototype of arguments and ATTRIBUTES as the attributes of the argument. Its syntax is: sub NAME or sub NAME PROTOTYPE ATTRIBUTES when the prototypes and attributes are optional.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Perl Interview Questions

    List all the features of Perl programming.

    Practical extraction and reporting language (PERL) is an open source software which is used to develop web-based applica..

    Perl Interview Questions

    What are the benefits of PERL in using it as a web-based application?

    The benefits of using PERL programming are: PERL is known as the duct tape of the internet. PERL can accelerate the pro..

    Perl Interview Questions

    Talk about the applications of PERL.

    PERL has myriad and varied applications. PERL is used to write Common Gateway Interface scripts and large projects like..