Hi,
 
This is a general question as opposed to 'I need help with...'
 
The code below does what is expected - whether if(1) or if(0)
 
use strict;
use warnings;
use Data::Dumper;
my $object;
 
if (1)
   {
   use CreateYourWeb::Logger;
   $object = CreateYourWeb::Logger->new(logfile=>'c:/test.log');
   }
else
   {
   use CreateYourWeb::Trapper;
   $object = CreateYourWeb::Trapper->new(trapper=>'trapcatcher');
   }
print Dumper $object;
 
 
What I want to know - but I can't seem to find the right perldoc - or I have and just don't 'get it',  ... is this ...
 
When selectively using modules in this way - does the path not taken still end up with the module being compiled and stored as potential code ?
 
Thanks In Advance,
Neil

Reply via email to