1.

What Is A Subroutine?

Answer»

Subroutine is perl is a block of code specially combined/grouped to perform a particular task.Which can be CALLED at any point of time in a perl PROGRAM.
Advantage using Subroutine
a) helps in modular programming MAKING it easier to understand and MAINTAIN.
b)ELIMINATES duplication by reusing the same code/calling the subroutine.

Subroutine is perl is a block of code specially combined/grouped to perform a particular task.Which can be called at any point of time in a perl program.
Advantage using Subroutine
a) helps in modular programming making it easier to understand and maintain.
b)eliminates duplication by reusing the same code/calling the subroutine.



Discussion

No Comment Found