Google News
logo
Perl - Quiz(MCQ)
Which of these is a valid way to define a function in Perl?
A)
function function_name{ }
B)
returntype function_name{ }
C)
sub function_name{ }
D)
None of the Above

Correct Answer :   sub function_name{ }


Explanation :

The valid method to define a function in Perl : sub function_name{}

Advertisement