A

Admin • 833.24K Points
Coach

Q. Which is a valid way to extract the size of an array in Perl?

  • (A) _len(@array_name)
  • (B) @array_name.length()
  • (C) $size = scalar @array_name
  • (D) All of these
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category Perl
  • Hashtags:

Explanation by: Admin

The valid way to extract the size of an array in Perl is:

$size = scalar @array_name

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.