OzVegan has asked for the wisdom of the Perl Monks concerning the following question:
I have a problem with the KEY_READ Win32::Registry function in a package/class object I'm creating.
The specific code is:
my $regKey = $Registry->Connect( $self->{ _csii_server_name }, get_registry_path . "\\SQL" ,{ Access => $Registry->KEY_READ } )The error I get is:
Can't call method "KEY_READ" on an undefined value at C:/Perl/site/lib/cmpny/cmpny_SQLSERVER_INSTANCE_INFORMATION.pm line 75.The rest of the code for the module etc is in my public scratchpad OzVegan's Public Scratchpad I'm having a hard time trying to pin down why KEY_READ is not being recognised even though it works no problems in a standard Perl script. I'm missing some logic or something :-/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't call method "KEY_READ" on an undefined value
by wind (Priest) on May 11, 2011 at 00:04 UTC | |
by OzVegan (Acolyte) on May 11, 2011 at 00:26 UTC | |
by OzVegan (Acolyte) on May 11, 2011 at 00:38 UTC | |
|
Re: Can't call method "KEY_READ" on an undefined value
by ikegami (Patriarch) on May 11, 2011 at 00:01 UTC | |
by OzVegan (Acolyte) on May 11, 2011 at 00:18 UTC | |
|
Re: Can't call method "KEY_READ" on an undefined value
by locked_user sundialsvc4 (Abbot) on May 11, 2011 at 01:46 UTC | |
by OzVegan (Acolyte) on May 19, 2011 at 23:02 UTC |