in reply to Using require

$option is a lexical variable inside config.pl. A file is a lexical scope. Make $option a package variable.

Abigail

Replies are listed 'Best First'.
Re: Re: Using require
by kidd (Curate) on Jul 10, 2002 at 16:58 UTC
    How do I create $option a package?
      By not creating it a lexical variable. Leave the my off. Of course, you either have to get rid of the strictness, use use vars, or use a fully qualified name.

      Abigail

        I have $option without the my and added the use vars; inside the config.pl...

        Still doesnt work, maybe Im doing something wrong...