Re: [htmltmpl] One-liner to convert array-of-hashes to an array
Brought to you by:
samtregar
From: Roger B. W. <ro...@fi...> - 2002-07-16 10:06:10
|
On or about Tue, Jul 16, 2002 at 03:16:28PM +0530, Philip S Tellis typed: >This might work: > >my @lov = map {$_->{$key}} @hash_array; Not quite - this will insert undefs in the list if the key doesn't exist in all hashes. See my version which checks for this. Cheers, Roger |