You cannot run CGIs using Perl 5.6.x with the -w flag. Instead, include the following code in the file:
use warnings;