in reply to Getting keys/values from a referenced hash

Ira has already shown you how to access your keys so I thought I'd take a moment to suggest a more concise method of reading in your hash:
my $hash = do 'hash.pl'; print $! || $@ || $hash->{'key'};
See 'perldoc -f do' for more details on the effects of 'do FILE'. Cheers, - danboo

Replies are listed 'Best First'.
Re: Re: Getting keys/values from a referenced hash
by professa (Beadle) on Nov 27, 2001 at 21:52 UTC
    Thanks, I'll give it a try!
    As I come from Pascal and Fortran77 (*yikes*) I still have some problems with the more advanced (say: efficient) way of accessing data in Perl.
    And I will need ages to be able to reply properly and not a thousand times like above... ;)

    Micha