in reply to Re: 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 if you modify @_, for that matter. Will we now have 2 copies of all the arguments with all the memory headaches that brings or will it be a reference (and how would that work)?
For all the nice-to-haves such a feature might provide I think there are too many drawbacks and quite frankly the single-line "boilerplate" to achieve the same is no great hardship.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?
by smls (Friar) on Sep 26, 2013 at 11:19 UTC | |
by ikegami (Patriarch) on Sep 26, 2013 at 14:16 UTC | |
by vsespb (Chaplain) on Sep 26, 2013 at 11:45 UTC |