in reply to Re: including another perl file
in thread including another perl file
require only loads once and this WILL bite in any persistent environment.
Update: that should be local %INC = %INC; in fact.$ echo 'print 1;' > test.pl $ perl -le'{ local %INC; require "test.pl" } require "test.pl";' 1 1
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: including another perl file (dynamic scoping)
by Juerd (Abbot) on Jun 03, 2003 at 05:28 UTC |