in reply to Re^3: Help choosing the most efficient, dependable condition(al)
in thread Help choosing the most efficient, dependable condition(al)
When I use your revised edition, Perl throws:
But, if I simply add an additional \n to each of the content-type lines:malformed header from script. Bad header=<?xml version="1.0" encoding= +": vary-test.cgi
no errors thrown.print "Content-Type: application/xhtml+xml; charset=UTF-8\n\n"; } else { print "Content-Type: text/html; charset=UTF-8\n\n";
I've been meaning to have a look at plackup. I've seen alot of people using it.
Thanks for mentioning it.
--Chris
#!/usr/bin/perl -Tw use Perl::Always or die; my $perl_version = (5.12.5); print $perl_version;
|
|---|