The Setting:
ActiveState 5.6.1 running on WinNT 4
I have read the documentation for Win32::TieRegistry
Win32::TieRegistry
Which I am sure is complete but which I fear I am far too obtuse to understand and so now find I am more confused than ever.
The Problem:
use Win32::TieRegistry( Delimiter=>"/" );
$remoteKey = $Registry->{"//$pserver/LMachine/SYSTEM/CurrentControlSet/Control/Print/Monitors/HP Standard TCP/IP Port/Ports/$portname/"} || die "Can't read the port key on $pserver: $^E\n";;
Note that the key I want to reference is "HP Standard TCP/IP Port".
Since the delimiter is set to "/" I assume Perl is reading this as two seperate keys and returns the die statement "Can't
read the port key"
I have tried "//", "\", '//", '\", etc with no luck.
Could someone please point out how to get around this.
I am sure I will kick myself when the obvious is revealed.
Thanks in advance.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.