Just another Perl shrine | |
PerlMonks |
Re: Is there a cleaner way to write this code below, which includes derferencing references, that themselves have to be dereferenced?by BillKSmith (Monsignor) |
on May 06, 2022 at 14:10 UTC ( [id://11143629]=note: print w/replies, xml ) | Need Help?? |
The use of the function map rather than foreach... and zip (from List::MoreUtils) eliminates the need for all your temporary variables and the associated reference/dereference.
Bill
In Section
Seekers of Perl Wisdom
|
|