Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Need some data structures cookedby petral (Curate) |
on Nov 21, 2002 at 15:55 UTC ( [id://214798]=note: print w/replies, xml ) | Need Help?? |
Well cooked!  Oddly enough, all you need is:
splice @{$vips{$k}{'stack'}}, 0, -50;
It will leave the array untouched if it is not greater than 50.
(I guess they mean "off the deleted array" -- at all events, that's how it works (and also what makes sense).  It's explained clearly here!)   p
In Section
Seekers of Perl Wisdom
|
|