Home »
MCQs »
Perl Programming MCQs
Method in Perl is?
9. Method in Perl is?
- Time savers
- User to reuse code w/o retyping the code
- Collections of statement that perform specific tasks
- All of these
Answer: D) All of these
Explanation:
Method/subroutine in Perl is a block of code (collection of statements) that performs a specific task in peril.
It can save programmer time and user code as one function can be called multiple times.