http://qs1969.pair.com?node_id=404799


in reply to Re: use and require inside subs
in thread use and require inside subs

I thought I knew this, but why do I put my use statements inside if/then if it happens at compile time?
use warnings; use strict; my $config; if ($^O eq 'MSWin32') { use Win32::TieRegistry( Delimiter=>"/", ArrayValues=>0 ); # load $config from registry } else { # else load $config from flat files }
Too tired to think for myself tonight.