Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Open an application from windows registry

by Corion (Patriarch)
on Feb 27, 2017 at 08:38 UTC ( [id://1182942]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1182942]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-19 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found