
user100
New User
Oct 24, 2010, 11:55 AM
Post #5 of 7
(18813 views)
|
Re: [FishMonger] win32:registry question
[In reply to]
|
Can't Post
|
|
Yes I have.
#!/usr/bin/perl #use Win32::Registry; #my $Register = "Software"; #my $hkey,$SubKey; #$HKEY_LOCAL_MACHINE->Open($Register,$hkey)|| die $!; #$hkey->Create("FunStuff",$SubKey); #$hkey->Close(); #---------------- [ $SubKeyObj = ] $obj->Create("SubKey" [,$SubKeyObj] ) [ $SubKeyObj = ] Win32::Registry::Create("absolute path","SubKey" [,$SubKeyObj]) $SubKeyObj=$RegObj->Create( "SubKey") or die "Cannot create SubKey.\n"; $RegObj->Create( 'SubKey\SubSubKey',$SubSubKeyObj ) or die "Cannot create SubKey.\n"; $Jenda = Win32::Registry::Create('HKEY_LOCAL_MACHINE\SOFTWARE','Jenda'); Here is some stuff I used. And here are the errors:
Scalar found where operator expected at reg line 14, near "] $obj" (Missing operator before $obj?) Bareword found where operator expected at reg line 15, near "] Win32::Registry::Create" (Missing operator before Win32::Registry::Create?) Scalar found where operator expected at reg line 16 near ") $SubKeyObj" (Missing semicolon on previous line?) syntax error at reg line 14, near "= ]" reg compilations errors.
|