Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Hashes and hash references

by dave_the_m (Monsignor)
on Sep 04, 2005 at 17:17 UTC ( [id://489060]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://489060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found