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
In reply to Re^3: Open an application from windows registry
by Corion
in thread Open an application from windows registry
by ElAlx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |