in reply to Re: require & $main::variables
in thread require & $main::variables

Yeep, that was it. Now I use our in main and it works with require. Thanks.
But in another program it works with use and my in the main program.

Maybe require is a little bit different from use in that case.

----------------------------------- --the good, the bad and the physi-- -----------------------------------

Replies are listed 'Best First'.
Re: Re: Re: require & $main::variables
by arturo (Vicar) on Apr 03, 2001 at 16:55 UTC

    Read up on require and use ... they are indeed different (use requires the file and then imports all the variables the file exports.)
    perlfunc:require
    perlfunc:use

    Philosophy can be made out of anything. Or less -- Jerry A. Fodor