in reply to Problems with Tk on Win32

You probably want to use Win32::TieRegistry instead of Win32::Registry. The former is alot easier to use. Use the method tall_man outlines above for including it only when running on Windows.

Replies are listed 'Best First'.
Re^2: Problems with Tk on Win32
by pg (Canon) on Oct 04, 2004 at 20:49 UTC

    Not just easy to use, it is actually stated in Win32::Registry document:

    "Win32::Registry - accessing the Windows registry [obsolete, use Win32::TieRegistry]"