in reply to Trying to add a service in win32 environment

Sorry... let's try it again. Code follows:
use strict; my $Registry; use Win32::TieRegistry ( TiedRef=>\$Registry, Delimiter=>"/" ); my $CAP_HOME = Win32::GetCwd(); $CAP_HOME =~ s/\\bin\S*//; $Registry->{"LMachine/System/CurrentControlSet/Services/CapSync/"}= { "/DisplayName" => [ "CapSync", "REG_SZ"], "/ErrorControl" => [ "0x0001", "REG_DWORD"], "/ImagePath" => [ "$CAP_HOME\\bin\\Start_CapSync.exe", "REG_EXPAND +_SZ"], "/ObjectName" => [ "LocalSystem", "REG_SZ"], "/Start" => [ "0x0002", "REG_DWORD"], "/Type" => [ "0x0110", "REG_DWORD"], } or die "Can not create services entry\n";