Thanks Paul. I did try that, at least I thought I did but it was late, couldn't keep my eyes open and knew I had to get up early. Now just to doc exactly what I have so it may help someone else.
use strict; use warnings; use English; use diagnostics -verbose; use File::Path; use Switch; use Cwd; #Load Windows specific moduldes use if ($^O eq "MSWin32"), "Win32"; use if ($^O eq "MSWin32"), "Win32API::Registry" => qw(:ALL); use if ($^O eq "MSWin32"), "Win32::Shortcut"; use if ($^O eq "MSWin32"), "Win32::TieRegistry"; if ($OSNAME eq "MSWin32") { $main::Registry->Delimiter("/"); }
Two notes.
I had to quote the modulde names since I'm using strict.
I couldn't get the option 'Delimiter("/")' working on the "us if ... TieRegistry" line so I had to set the delimiter on it's own line

Thanks everyone for your help. Hopefully this summary will help someone else.
-Dave

In reply to Re: How to do a conditional load of a module ? by davejavu
in thread How to do a conditional load of a module ? by davejavu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.