http://qs321.pair.com?node_id=312982


in reply to Subroutine References

What I think you are asking is why my $SubRef = sub ($$){...}

Lets you call it with an array ref like

$SubRef->(\@Array , $Scalar);

And I believe the answer is that an array ref is actually scalar, so the prototyping allows it whether it is sub(\@$) or sub($$)


UPDATE: I was wrong. Just ignore me.

- Tom