Q. Which of these is a valid way to define a function in Perl?
β
Correct Answer: (B)
sub function_name{ }
Explanation: The valid method to define a function in Perl,
sub function_name{
}