lexicals are always faster than globals - provided you have direct access to them - since package globals require a hashtable lookuppackage variables do not require a hash table lookup; each relevant op contains a pointer to the typeglob (or in the case of ithread builds, an index into the pad which contains the typeglob). It's still slightly slower than lexicals since a few more pointers have to be followed.
Dave.
In reply to Re^2: Examples fo Where "our" is really needed
by dave_the_m
in thread Examples fo Where "our" is really needed
by geekondemand
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |