Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
go ahead... be a heretic
 
PerlMonks  

Re: Win32::TieRegistry cloning keys bug. (ArrayValues)

by tye (Sage)
on Jan 17, 2006 at 09:59 UTC ( [id://523748]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Win32::TieRegistry cloning keys bug.

Quoting the f' documentation:

Note that you need to have called $Registry->ArrayValues(1) for the proper value data type information to be copied. Note also that this release of Win32::TieRegistry does not copy key attributes such as class name and security information

- tye        

  • Comment on Re: Win32::TieRegistry cloning keys bug. (ArrayValues)

Replies are listed 'Best First'.
Re^2: Win32::TieRegistry cloning keys bug. (ArrayValues)
by Sioln (Sexton) on Jan 17, 2006 at 10:49 UTC

    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 ?

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://523748]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.