require() stores an entry in the %INC hash to prevent reading the same file twice. However, you can override that by using do() instead, or by removing the entry from %INC.
delete $INC{"commands.cgi"};
require "commands.cgi";
# or
do "commands.cgi";
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??; |