What is subroutine in perl?



What is subroutine in perl?..

Answer / Rashmi Choudhary

In Perl, a subroutine is a piece of reusable code that can be called multiple times with different parameters. They are defined using the 'sub' keyword and can contain any valid Perl statements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

what are the three groups involved in information sharing?

1 Answers  


Explain socket programming in perl?

1 Answers  


What does the command "use strict" do and why should you use it?

2 Answers   Symphony, TCS,


How would you trap error occurred in the perl program/file?

3 Answers   IBM,


What is use of ‘->’ symbol?

1 Answers  


Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?

1 Answers  


What are some of the key features of objects in perl?

1 Answers  


What is the use of strict?

1 Answers  


Explain what is STDIN, STDOUT and STDERR?

1 Answers  


What is perl shift array function?

1 Answers  


Write an example explaining the use of symbol tables.

1 Answers  


you are required to replace a char in a string and store the number of replacements. How would you do that?

1 Answers  


Categories