in reply to (Answered) How to force list context?
@h{ /\w$/g } += $_ while <DATA>;
But I find it quite ugly. What about split?
$h{ (split)[1] } += $_ while <DATA>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to force list context?
by rsFalse (Chaplain) on Dec 08, 2014 at 11:19 UTC |