Teddy -- ...and then Octavian Rasnita said... % % Hi all,
Hello! % % Is it possible to use "use strict;" if I get the variables from a % configuration file? % % I've tried: % % use strict; % require "f:/xxx/config.txt"; Have you tried use "f:/xxx/config.txt"; instead? From my reading of the camel book, require happens at run time and thus anything it defines won't be defined at compile time and strict will puke, whereas use "essentially performs a require at compile time and then lets yuou import declarations into your own namespace", the latter part of which may also be useful (no put intended ;-) in light of some of the scoping concerns brought up in other replies. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg05345/pgp00000.pgp
Description: PGP signature