in reply to where the module file *.pm located

When your script tries to use File::Readbackwards, Perl looks in the directories in @INC to find a directory called File with a file Readbackwards.pm in it. Just make it so :-)


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: where the module file *.pm located
by ytjPerl (Scribe) on Jul 20, 2017 at 17:23 UTC

    I already put ReadBackwards.pm at location \perl\site\lib and \perl\lib, but still not working.

      As was already explained, that file needs to go into a directory called 'File' -- so you should move the file ReadBackwards.pm from \perl\site\lib to the new location \perl\site\lib\File. (Hint: you may need to create that directory.)

      Alex / talexb / Toronto

      Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.