Arun Tv has asked for the wisdom of the Perl Monks concerning the following question:
file1#!/usr/local/bin/perl require "file1"; print "name-1 == $NAME\n"; require "file2"; print "name-2 == $NAME\n"; require "file1"; print "name-1 == $NAME\n";
name1 = John name2 = Kent name1 = Kent
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: resetting the "require" Function.
by Fletch (Bishop) on Nov 03, 2008 at 15:57 UTC | |
|
Re: resetting the "require" Function.
by almut (Canon) on Nov 03, 2008 at 15:57 UTC | |
| |
|
Re: resetting the "require" Function.
by chromatic (Archbishop) on Nov 03, 2008 at 21:48 UTC | |
by Arun Tv (Initiate) on Nov 04, 2008 at 11:09 UTC |