in reply to In Win32::TieRegistry, what is the best way to tell if a registry variable exists?

Just like other hashes, use exists.
use Win32::TieRegistry qw( $Registry ); warn "No association exists for Perl files\n" if not exists $Registry->{'Classes\\.pl'};
  • Comment on Re: In Win32::TieRegistry, what is the best way to tell if a registry variable exists?
  • Select or Download Code