Yes, Perl is missing some handy idioms. You can use mapcar in this situation, though it isn't a perfect fit:
- tye (but my friends call me "Tye")use mapcar; mapcar { $_[0]{$_[1]}++ } [\%user,\%group], [(stat $file)[4,5]];
In reply to (tye)Re: Revisiting array context
by tye
in thread Revisiting array context
by grinder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |