my @var = @array # copy the array
my $var = @array # return the count of elements in arrayEspecially in a dynamic language like Perl, you wouldn't know that you're passing down an integer instead of a function until the code blows up in a completely unrelated function.