Hi,

Has anyone successfully added a key using Win32::TieRegistry?

I can read keys just fine ... but I can't seem to add one.

-----------------------------------------------------------------------
#!perl -w

use Win32::TieRegistry (Delimiter=>"/", ArrayValues=>1);

$tip186 = "";

$tips =
$Registry->{"LMachine/Software/Microsoft/Windows/CurrentVersion/Explorer/Tips/"}
  or
die "Can't find the Windows tips: $^E\n";

$tips{'/186'} = "Be very careful when making changes to the Registry!";


$tip186=
$Registry->{"HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Explorer/Tips//186"};

print "tip186 = $tip186\n";
-----------------------------------------------------------------------

C:\temp>test.pl
Use of uninitialized value in concatenation (.) or string at
C:\temp\test.pl line 21.
tip186 =

_______________________________________________________________________

Poking about with REGEDIT.EXE, I don't see Tip 186 where I would expect it
to be.

I'm running ActiveState 5.8.0 under WinXP.  Win32::TieRegistry v0.24.

Any pointers appreciated.

--sk

Stuart Kendrick
FHCRC

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to