Re: [MacPerl-WebCGI] Variable scope across packages
[email protected] (Axel Rose) Fri, 31 Aug 2001 17:29:26 +0200
| Newsgroups | perl.macperl.webcgi |
|---|---|
| Message-ID | <p04330118b7b55d694025@[172.16.172.241]> |
Hello Stephen, the way I solve such a problem is by using the old-fashioned require. test.pl: -------- require "config.pl"; config.pl: ---------- use vars qw ( $globalAttempt $foo @bar ); $foo =3D 0; This seems to be easiest for me. HTH Axel ---------------------------------------------------------------------- Axel Rose, Springer & Jacoby Digital GmbH & Co. KG, mailto:[email protected] pub PGP key 1024/A21CB825 E0E4 BC69 E001 96E9 2EFD 86CA 9CA1 AAC5 "... denn alles, was entsteht, ist wert, da=DF es zugrunde geht ..."