I am having fun with modules. The web server I am attempting this on does not have the correct module installed (DBD::CSV), the admin won't install it for me and I have no telnet access to the machine. So, I created a lib directory in the root of the web server and placed the CSV.pm and File.pm in a DBD directory. I am calling it thusly:
1: #!/usr/bin/perl 2: 3: use lib '/home/user/www/lib'; 4: use DBD::CSV; 5: 6: exit;
using the handy web server verbose check_perl util, I get this error.
Illegal character \015 (carriage return) at /home/user/www/lib/DBD/CSV.pm line 1. (Maybe you didn't strip carriage returns after a network transfer?) BEGIN failed--compilation aborted at /home/user/www/test.pl line 4.
I know for a fact that the carraige returns are not the problem, because I have tried this with numerous modules, all giving me the same error. The line number (for the "illegal carraige return") will always be the line immediately preceding the first line of uncommented code.
As you can see, I am thoroughly confused. I may be missing something blatently obvious, but any help would be appreciated.
In reply to Modules, the hard way by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |