http://qs321.pair.com?node_id=1121624


in reply to perl code not working after moved new host with latest perl version

Four things:

1. Are you sure the ENV variables are set properly on the new machine? What do you get when you run the following in terminal for both machines?

echo REQUEST_METHOD: $REQUEST_METHOD echo CONTENT_LENGTH: $CONTENT_LENGTH echo QUERY_STRING: $QUERY_STRING

2, On which line is the uninitialized value reported?

3. Put the following at the top of your script below the shebang:

use strict; use warnings;

4. Now what warnings/errors do you see? (Be sure to declare your variables w/ my)