In this case, you simply shouldn't be using require. Use do instead:for (1 .. 10) { require "./foo.pl"; delete $INC{ './foo.pl' }; }
for (1 .. 10) { do "./foo.pl"; die $@ if $@; }
require is the same as do, except it does some things more, things you specifically don't want, except for the error checking.
In reply to Re: Re: Re: Passing a required script arguments
by bart
in thread Passing a required script arguments
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |