in reply to Hashes and hash references

This might be a silly question but is it more efficient to declare and uses hashes that way (reference)
No, a direct hash will be marginally faster.

PS this is wrong:

my %student = {};
it should be
my %student = ();
or even just
my %student;
as the hash is created empty already

Dave.

Replies are listed 'Best First'.
Re^2: Hashes and hash references
by Anonymous Monk on Sep 04, 2005 at 21:11 UTC
    oops!...

    You are right. See I got confused with the reference construct ;-)

    Confused Monk