A

Admin • 833.24K Points
Coach

Q. Which of these is a valid way to define a function in Perl?

  • (A) returntype function_name{ }
  • (B) sub function_name{ }
  • (C) function function_name{ }
  • (D) None of these
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category Perl
  • Hashtags:

Explanation by: Admin

The valid method to define a function in Perl,

sub function_name{
}

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.