That was not a loop, but a hash reference.
This sub is the constructor of a class, which most likely wraps a database session (or could be a web session). The hash ref stores the attributes of the object. It contains a set of information enough to identify the session, indicating which connection to which database resides on which server etc. Those attributes are initialized to undef to begin with.
In reply to Re: Help understanding object constructors
by pg
in thread Help understanding object constructors
by nisha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |