Posted on 2008-10-31 04:56:06-07 by ray99
mod_perl 2 vs MIME:base64 issue?
Hi,

I did managed to install mod_perl 2.0.4 into my WindowsXp Pro machine with Apache server 2.2.8 and Perl 5.10.0.

The problem that I have encounter is when I run PerlRun for my cgi-script, the script completed and giving the expected result. However, if I take a look on the error.log file, I have some error message on MIME:base64 as follow:

[error.log] Prototype mismatch: sub :ModPerl::PerlRun::C_3a_Apache2_2e2_cgi_2dbin_core_2ecgi::decode_base64: none vs ($) at C:/Perl/lib/Exporter.pm line 66. at C:/Apache2.2/cgi-bin/core.cgi line 4

[core.cgi] - few lines #!C://Perl//bin//perl.exe use strict; use DBI; use MIME::Base64; use CGI qw(:standard); ...

sub trDecode { my($str)=@_; $str=decode_base64($str); return($str); } # end sub

Please help up.. Really Appreciate.

Thank you. Ray
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.