it seems to me that there's a problem with the idea of assigning
a parameter like this
f(\@list);
sub f(\@) {
local *sym = $_[0];
}
the problem is that you can't do that with my only with local, and you want
to do my. also, you can't do it at all with use strict vars.
what do you think? is this enough of a reason to think about
whether you want to do an automatic lexical aliasing with named paraeters?
that is
sub f(\@alist) { ... }
would make @alist an alias for the reference parameter's referee and still
work under use strict?
--tom
a parameter like this
f(\@list);
sub f(\@) {
local *sym = $_[0];
}
the problem is that you can't do that with my only with local, and you want
to do my. also, you can't do it at all with use strict vars.
what do you think? is this enough of a reason to think about
whether you want to do an automatic lexical aliasing with named paraeters?
that is
sub f(\@alist) { ... }
would make @alist an alias for the reference parameter's referee and still
work under use strict?
--tom