CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
MIME::Types invalid works under mod_perl

 



mors
New User

Jun 21, 2011, 2:00 AM

Post #1 of 1 (440 views)
MIME::Types invalid works under mod_perl Can't Post

Hi!

I have simple test script:


Code
... 
use MIME::Types;

print "Content-type: text/html\n\n";
print "Hi!\n";
print MIME::Types::by_suffix('jpg')->[0];
print "\n";

exit(0);


This code prints "HI! image/jpeg" when running in console. And prints only "HI!" when get in browser under mod_perl.

Why MIME::Types incorrect works?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives