Perl Monk, Perl Meditation | |
PerlMonks |
Getting an array slice of value assignments in a hashby PerlingTheUK (Hermit) |
on Jun 03, 2005 at 10:08 UTC ( [id://463198]=perlquestion: print w/replies, xml ) | Need Help?? |
PerlingTheUK has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I have this piece of code:
I am not good at writing compact code but I did not see any way to simplify this to a one liner or so. I am looking forward to your suggestions. I tried to somehow get an array slice that would go into a line like but then thought there must be an even more compact way. UPDATE: I changed one line in the above code to show what I wanted to use @arr for. Thanks ysth. The old line was
Cheers, PerlingTheUK
Back to
Seekers of Perl Wisdom
|
|