in reply to Re^2: making a library
in thread making a library

have you changed "use Foo1" to "use Foo2" in the script that calls the subroutine? Have you changed the name of the package to Foo2 as well?
What you are doing at the moment isn't object-oreinted code, so you should call the subroutine simply with Foo2::bar. Or just simply "bar()" because you exported "bar" from pacakge Foo2 into the local namespace of the script that uses Foo2.

Replies are listed 'Best First'.
Re^4: making a library
by adieu (Initiate) on Mar 08, 2011 at 09:33 UTC
    Yes sir, I did all that. I created a new module altogether called Foo2.
Re^4: making a library
by adieu (Initiate) on Mar 08, 2011 at 09:35 UTC
    Yes sir I did all that. I created a new module called Foo2. Is it coz of some problem related to strawberry?
      can you post exactly what you have at this point and where the files are if they are not in the same directory?