in reply to Re^2: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?
in thread Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?
"or will it be a reference (and how would that work)?"
I don't know enough about how Perl implements arrays and hashes and about how tied hashes work, to answer that.
But even if there's no good way to meaningfully allow modification of %_, that doesn't mean the magic variable should not be provided at all, it just means it should be read-only.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?
by ikegami (Patriarch) on Sep 26, 2013 at 14:16 UTC | |
|
Re^4: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?
by vsespb (Chaplain) on Sep 26, 2013 at 11:45 UTC |