in reply to Re^2: Include module at compile time with condition
in thread Include module at compile time with condition
Note that the fat comma doesn't work here under use strict (i.e., you'd still need to quote the module name):
#!/usr/bin/perl use strict; use if ( 1 ) , Time::HiRes => qw(time) ;
$ ./903506.pl Bareword "Time::HiRes" not allowed while "strict subs" in use at ./903 +506.pl line 3. Execution of ./903506.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Include module at compile time with condition
by tchrist (Pilgrim) on May 08, 2011 at 00:30 UTC |