in reply to Re: Win32::TieRegistry cloning keys bug. (ArrayValues)
in thread Win32::TieRegistry cloning keys bug.

I've read about $Registry->ArrayValues(1), but

$Registry->ArrayValues(1) or die;# - dead $SOURCE->ArrayValues(1) or die;# - dead $DESTINATION->ArrayValues(1) or die;# -dead
How can I use it ?

Replies are listed 'Best First'.
Re^3: Win32::TieRegistry cloning keys bug. (ArrayValues)
by tye (Sage) on Jan 17, 2006 at 15:53 UTC

    Perhaps you should consider reading the documentation for it?

    ArrayValues

    $oldBool= $key->ArrayValues

    $oldBool= $key->ArrayValues( $newBool )

    Gets the current setting of the ArrayValues option and possibly turns it on or off.

    So I'm not sure why you feel "the current setting" being false justifies dieing.

    - tye        

      Thank you.
      use Win32::TieRegistry; my $SOURCE=$Registry->Connect( '127.0.0.1','LMachine',{Delimiter=>"\\" +}) or die; my $REMOTE=$Registry->Connect( 'bdc','LMachine',{Delimiter=>"\\"}) or +die; my $folder="SYSTEM\\RAdmin\\"; #ArrayValues my $key_source=$SOURCE->Open($folder); $key_source->ArrayValues(1); $REMOTE->{$folder}=$key_source;
      This code works fine.