The documentation states that the InstalledPackageProperties function,
returns a hash with package names as keys, and package properties as
attributes. What I got back however leads me to believe that it returns
the package names as keys but the package properties as a reference to a
hash. I tried de-referencing the hash but am still not getting what I
expected. I'm expecting to get a list of the installed modules followed
by each property and it's value, something similar to
module name
author= somebody
version= x.0x
etc
I guess I just don't understand references after all, can anybody spot
what I'm doing wrong?
TIA
Paula
**also sorry in advance if this is every other line, I see that happens
on some of my posts and I don't know why.
##code
use PPM;
print "PPM Installed Module Properties....\n";
%insModProps = PPM::InstalledPackageProperties();
foreach $insMod (sort keys %insModProps) {
print "\t$insMod=$insModProps{$insMod}\n";
$modProps = $insModProps{$insMod};
foreach $prop (sort keys %$modProps) {
print "\t\t$prop=$modProps{$prop}\n";
}
}
##end of code
##outputs
PPM Installed Module Properties....
Archive-Tar=HASH(0x21ae294)
ABSTRACT=
AUTHOR=
DATE=
NAME=
PERLCORE_VER=
TITLE=
VERSION=
Compress-Zlib=HASH(0x21b0dc4)
ABSTRACT=
AUTHOR=
DATE=
NAME=
PERLCORE_VER=
TITLE=
VERSION=
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users