in reply to Modules, the hard way

Did you download these modules in tarballs (.tar.gz files) or as straight .pm files?

If the latter, it's possible that they were converted to use DOS-style line endings of \r\n. If you open the files in vi, you might see the nasty ^M character. If so, see Remove the ^M Character from a Document. This could also happen if you transferred them from a DOS-type box to a Unix machine over the network or on a floppy.

If you're using FTP to transfer them, be sure to use ASCII mode for automatic line conversion.

If not... I'm sure confused. :)

Replies are listed 'Best First'.
Re: Modules
by knight (Friar) on Jul 24, 2000 at 19:36 UTC
    Note that if vi in your system is actually vim, you won't see the ^M characters displayed. Vim sees the \r\n line endings and opens up the file in dos format, wherein it silently preserves the dos line endings. It will show this when it starts up as part of displaying the file name, line and character counts:
    "foo" [dos] 3L, 9C
    To have vim strip the ^M characters for you, change the file format to "unix" as follows:
    :set ff=unix