in reply to I just can't figure this out...
What would be better is returning a reference to a hash from getSlashConf(). That code might look something like this:
In getSlashConf(), that last line should probably change to: return $l{HASH}; In my opinion, this makes it more clear that we are dealing with a hash of hashes data structure. (All that means is that the value of a hash is actually a reference to another hash, instead of a scalar.)my $l = getSlashConf(); getSlash(); my $op = $l->{F}{op};
For more information on references, see perlman:perlref. For more information on complex data structures, see perlman:perldsc.
|
|---|