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:
it should bemy %student = {};
or even justmy %student = ();
as the hash is created empty alreadymy %student;
Dave.
In reply to Re: Hashes and hash references
by dave_the_m
in thread Hashes and hash references
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |