Apache Error Log:
Can't locate net/telnet. pm IN @ INC (@ INC contains: C:/perl/lib C:/perl/site/lib .) at E: \ proj \ PHP \ san2 \ source ~ 1 \ webser ~ 1 \ System \ snmpmg ~ 1. pl line 3.
Can't locate object method "new" via package "Net: Telnet" (perhaps you forgot to load "Net: Telnet "?) At E: \ proj \ PHP \ san2 \ source ~ 1 \ webser ~ 1 \ System \ snmpmg ~ 1. pl line 12.
Solve the above problems:
1. Go to search.cpan.org to download a net: Telnet (http://search.cpan.org/CPAN/authors/id/J/JR/JROGERS/Net-Telnet-3.03.tar.gz), put the decompressed Telnet. PM under c: \ Perl \ site \ Lib \ net.
2. Then execute ppm install net: Telnet on the command line to install the SDK, instead of simply copying it.
For example:
C: \ Documents ents and Settings \ Evan> ppm install net: Telnet
Installing package 'Net-Telnet '...
Bytes transferred: 48478
Installing c: \ Perl \ HTML \ site \ Lib \ net \ telnet.html
Installing c: \ Perl \ site \ Lib \ net \ Telnet. PM
Writing C: \ Perl \ site \ Lib \ auto \ net \ Telnet \. packlist
C: \ Documents ents and Settings \ Evan>