Explain subroutine?



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

Post New Answer

More CGI Perl Interview Questions

what is the meaning of rigging?

1 Answers  


How do I pass a command line argument in perl?

1 Answers  


How to renaming a file in perl programming?

1 Answers  


What can be done for efficient parameter passing in perl? Explain.

1 Answers  


Differentiate use and require?

1 Answers  


Why do you use only Perl when there a lot of more languages available in market like C, Java?

1 Answers  


Who created perl?

1 Answers  


Which functions in Perl allows you to include a module file or a module and what is the difference between them?

1 Answers  


Elaborate on perl bite-wise operators.

1 Answers  


How can you call a subroutine and identify a subroutine?

1 Answers  


How many ways can we express string in Perl?

1 Answers  


Perl regular expressions are greedy" what does this mean?

1 Answers  


Categories