Explain subroutine?
Answer / Veeresh Kumar Shakya
A subroutine is a reusable block of code in Perl. It can contain one or more statements, and it can be called multiple times within a program to execute the same set of instructions without duplicating the code. Subroutines are defined using the sub keyword.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the meaning of rigging?
How do I pass a command line argument in perl?
How to renaming a file in perl programming?
What can be done for efficient parameter passing in perl? Explain.
Differentiate use and require?
Why do you use only Perl when there a lot of more languages available in market like C, Java?
Who created perl?
Which functions in Perl allows you to include a module file or a module and what is the difference between them?
Elaborate on perl bite-wise operators.
How can you call a subroutine and identify a subroutine?
How many ways can we express string in Perl?
Perl regular expressions are greedy" what does this mean?