On 29/04/2011 09:15, Brian Fraser wrote:
On Fri, Apr 29, 2011 at 5:02 AM, Uri Guttman<[email protected]> wrote:so you can streamline yours with a slice: my $status = join '', grep defined, @jvalue{ 0 .. 5 } ;This one was on purpose though - The slice might insert new keys into the hash, and I recently spent the good half of an hour debugging just that..!
Good call Brian. It's not at all obvious that all the elements of a hash slice will be created if they don't exist :) Rob -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
