trout16 has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Win32::TieRegistry ( Delimiter=>"/" ); $Registry->Delimiter("/"); my (@Print_Printer) = (); my ($sysKey, $Print_Printer); @Print_Printer = grep( m#^/#, keys( %{$sysKey->{"LMachine/SYSTEM/Curre +ntControlSet/Control/Print/Printers/"}} ) ); foreach $Print_Printer(@Print_Printer){ print "$Print_Printer\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: TieRegistry Listing All Subkeys with Grep
by benn (Vicar) on Jul 26, 2003 at 12:28 UTC |