Ron Smith wrote:
If I wanted to add more fields to my output, which construct would I
use to create more fields; something like the following?
basename count extension size
...maybe 'HoH', or just expand on the 'HoA?
I suppose that you are not really talking about the output now, but
rather about adding more info to the data structure. Anyway, it depends
on what you would like to use it for. I imagine that you might want a
HoAoH with each file being represented by a hash reference. Something
like:
my %HoAoH = (
dir1 => [
{
basename => 'name1',
extension => 'html',
size => 1000,
},
],
dir2 => [
{
basename => 'name2',
extension => 'html',
size => 2000,
},
{
basename => 'name3',
extension => 'gif',
size => 1500,
},
],
);
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>