in reply to How to escape space in registry path?
The examples you posted won't work, each lacks a string terminator (no closing "). The crude example below works for me where there is a space in the key name.
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use Win32::TieRegistry( Delimiter => '/' ); my $value = $Registry->{ "HKEY_CURRENT_USER/Software/Microsoft/Windows +/CurrentVersion/Group Policy" } ; print Dumper $value;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to escape space in registry path?
by anaconda_wly (Scribe) on Nov 20, 2012 at 15:29 UTC | |
by tye (Sage) on Nov 20, 2012 at 15:34 UTC | |
by anaconda_wly (Scribe) on Nov 20, 2012 at 21:01 UTC | |
by marto (Cardinal) on Nov 21, 2012 at 09:51 UTC |