The second time you try to require "a.pl"; has no effect because a.pl is already loaded. To ensure the other scripts are always executed by c.pl, use do instead of require.
do "a.pl"; print "$database\n"; do "b.pl"; print "$database\n"; do "a.pl"; print "$database\n";
In reply to Re: Variable scoping problem
by hippo
in thread Variable scoping problem
by kwatts59
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |