Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
After doing things like
I start wondering if there are any array assignment "tricks" to assign and modify in one fell swoop. For instance to add the elements of two arrays to each othermy ($dd, $mm, $yyyy) = (localtime)[3..5]; $mm += 1; $yyyy += 1900;
or in a similar fashion concat the elements...fake code: @result = (1,2,3) + (4,5,6); # intending @result to contain (5,7,9)
Thanks for any insights
L
Back to
Seekers of Perl Wisdom