in reply to Re^2: Open an application from windows registry
in thread Open an application from windows registry

Single quotes don't interpolate variables. Double quotes do.

use Win32::TieRegistry (Delimiter => '/'); my $version=2.1; my $key_single = 'HKEY_LOCAL_MACHINE/Software/SPS/$version'; my $key_double = "HKEY_LOCAL_MACHINE/Software/SPS/$version"; print "Single quotes: <$key_single>\n"; print "Double quotes: <$key_double>\n";

See perlop

Replies are listed 'Best First'.
Re^4: Open an application from windows registry
by ElAlx (Initiate) on Feb 27, 2017 at 08:51 UTC
    Thanks, i ran it again as admin and it worked.