Hi all,

I am trying to utilize Data::Compare to compare two data structures
containing user names and account attributes from Windows XP systems.
Using Win32API::Net, it returns an array of usernames, which can be
looped through to pull a hash of each users' attributes.  However,
comparing these hashes over time always results in a false match due
to the passwordAge attribute (value is # of seconds since epoch, so
it's always different).  I tried using the ignore_hash_keys parameter
to ignore it, but it still never matches correctly.  Is there a way to
check if the attribute is actually being ignored?  Am I using it
wrong? (I copied the line directly from the sample code on CPAN and
just changed the variables)

Code below:
            $updateUsers = Compare(\%oldUsers, \%newUsers, {
ignore_hash_keys => [qw(passwordAge)] });

It always returns a '0' (false match).
Any ideas?
Roman

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to