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.
In reply to Re^2: including another perl file (dynamic scoping)
by Aristotle
in thread including another perl file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |