in reply to hash & arrays

Another approach is to use a HASHES OF HASHES which will allow you to name each of your elements.
use strict; use warnings; use Data::Dumper; my %account = ( ewh1234 => { job => 'engineer', foo => 23.4, bar => 1.2, area => 'local' } ); print $account{ewh1234}{foo}, "\n"; print Dumper($account{ewh1234}); __END__ 23.4 $VAR1 = { 'bar' => '1.2', 'area' => 'local', 'foo' => '23.4', 'job' => 'engineer' };

Replies are listed 'Best First'.
Re^2: hash & arrays
by BioLion (Curate) on Nov 02, 2009 at 14:55 UTC

    OP would probably find perldsc, perlref and Data::Dumper useful for playing around and getting to grips with things?

    Just a something something...