We must include the line
for perl script to find the require argument in the current directory.
What do you get when you run "perl -V"? I'm unable to reproduce this problem
with this test case:
Running foo2 prints "foo1".
assigned to nalin