I'm trying to figure out this perl syntax for passing a function 'pointer'.
sub test (&@)
my ($function, @data) = @_;
so do the two egyptian hieroglyphs mean that the sub only takes a sub, then an array as parameters? How exactly do I pass a sub to a call of test(), like:
If that's right, how can I then call $function once it's passed to test, and even pass a parameter to it?