XP is just a number | |
PerlMonks |
Confused: Hashrefs in TieRegistryby Maze (Sexton) |
on Aug 15, 2006 at 20:40 UTC ( [id://567551]=perlquestion: print w/replies, xml ) | Need Help?? |
Maze has asked for the wisdom of the Perl Monks concerning the following question:
Simply put
can anyone tell me why this:
doesn't work... it's supposed to be part of a direct lookalike of the plain 'assoc' utility in Windows 2000/XP which, when invoked on it's own, lists the extensions and the associated filetypes on the system. what actually happens when I exectute is this: which suggests that the $registry reference isn't behaving as I expect it too when it's fed to the 'each' function, however this is strange, because it works fine with 'keys' and 'values'... except when i try to get it too read the default value under the key "/". *sigh* i'm beginning to understand where perl gets it's name from, I must seriously be missing something about references or objects or TiedHashes excetera I also think i might be missing something about how the TieRegistry module does work (or doesn't as the case may be)
Back to
Seekers of Perl Wisdom
|
|