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?
Hm, good point.
I guess it could be made so that in case of an uneven sized list, it excludes the first item.
But that would break consistency with regard how uneven lists are usually interpreted as hashes, which I think is to exclude the last item and printing a warning.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why doesn't Perl provide %_ as the hash equivalent of @_ in subs?
by choroba (Cardinal) on Sep 26, 2013 at 10:16 UTC |