But there should be no problem passing a reference to an arbitrarily complex data structure as the parameter of a named parameter and then accessing the data in any legal way
Well it's insofar a problem that it's more complicated and unintuitive.
Would you preferre to use HTML this way? <tag="a" name="anchor" ... >
"There should be no problem" to use a workaround is good argument to abandon Perl for the sake of a more primitive language.
Me, I can perfectly imagine a case where I'd like to pass anonymous functions with parameters (e.g to use as defaults):
doit ( \&func1 => [para1, para2], \&func2 => [para7, para4] )
Cheers Rolf
In reply to Re^13: Preferred technique for named subroutine parameters?
by LanX
in thread Preferred technique for named subroutine parameters?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |