in reply to Re^3: Help choosing the most efficient, dependable condition(al)
in thread Help choosing the most efficient, dependable condition(al)

In my humble defense daxim.

When I use your revised edition, Perl throws:

malformed header from script. Bad header=<?xml version="1.0" encoding= +": vary-test.cgi
But, if I simply add an additional \n to each of the content-type lines:
print "Content-Type: application/xhtml+xml; charset=UTF-8\n\n"; } else { print "Content-Type: text/html; charset=UTF-8\n\n";
no errors thrown.

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;