Oops.. I made one mistake in my explanation.  The structure in
question is a hash of usernames each containing another hash of the
user attributes.  I'm trying to use the code to ignore an attribute in
the second-level hash.

Will that work?

On Dec 12, 2007 3:49 PM, Roman Daszczyszak <[EMAIL PROTECTED]> wrote:
> 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