Samn has asked for the wisdom of the Perl Monks concerning the following question:

Replies are listed 'Best First'.
Re: Re-requiring files during execution
by japhy (Canon) on Jul 21, 2002 at 15:14 UTC
    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:??;