perltux has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; my $LINUX; my $WINDOWS; BEGIN{ if ($^O eq 'linux') { $LINUX=1; } elsif ($^O eq 'MSWin32') { $WINDOWS=1; } } use if ($WINDOWS), 'Win32::TieRegistry' => (Delimiter => '/'); if ($WINDOWS) { my $mykey=$Registry->{'HKEY_CURRENT_USER/Control Panel/Desktop/Win +dowMetrics'}; my $wdpi=hex($mykey->{'AppliedDPI'}) .'dpi / '; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how do I use Win32::TieRegistry in a multi-platform program?
by haukex (Archbishop) on Mar 01, 2018 at 20:47 UTC | |
by perltux (Monk) on Mar 01, 2018 at 21:55 UTC | |
|
Re: how do I use Win32::TieRegistry in a multi-platform program?
by ikegami (Patriarch) on Mar 04, 2018 at 02:02 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |