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 :-/
In reply to Can't call method "KEY_READ" on an undefined value by OzVegan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |