PERL Includes
Carl Parrish
plug-devel@lists.PLUG.phoenix.az.us
Wed Nov 26 23:19:02 2003
I would like to thank Alex for making me realize that there is already a
Config package in @INC that that was why my includes weren't working as
soon as I changed the name of my package everything worked fine. Thanks
again Alex.
Carl P.
On Wed, 2003-11-26 at 12:48, Carl Parrish wrote:
> how do you use includes in perl?
> I'm trying to include a config file into a perl script. I must not be
> remembering something correctly
>
> I have a package file called Config.pm
>
> in my test file I have the following
>
> #!/usr/local/perl -w
> use Config
>
> print "$Config::var";
>
>
>
> var is declared in Config. but so far this doesn't seem to be working.
> Any suggestions?
>
--
Carl Parrish (cparrish@carlparrish.com)
http://www.carlparrish.com
---
Registered Linux User #295761 http://counter.li.org