in reply to Problems with Tk on Win32

I have used Perl::Tk on both Windows and Solaris, and I do not remember any validation callback problems of that sort. For conditional inclusion of modules, try this:
BEGIN { if ($^O =~ /^Win/) { require Win32::Registry; Win32::Registry->import; } }

Replies are listed 'Best First'.
Re^2: Problems with Tk on Win32
by Madams (Pilgrim) on Oct 04, 2004 at 23:03 UTC

    Actually it's even simpler!

    #!c:/opt/perl -w . . . use if $^O=~/^win/i, Win32::TieRegistry; . . .

    if.pm is currently in the standard distro.


    madams55075.spamtrap.@comcast.net=~s/\.spamtrap\.//;