http://qs1969.pair.com?node_id=297785

Hoot has asked for the wisdom of the Perl Monks concerning the following question:

I have the following:
#!/usr/bin/perl -w use strict; use diagnostics; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); print header(), start_html("Address Book for \u$ENV{USER}"), h1("Use A +ddress Book");
What I want is the Title to read
"Address Book for Hoot"
but at the moment it is printing
"Address Book for - Netscape"

When I run the code from the command line it expands
$ENV{USER} and prints to the terminal:
"Address Book for Hoot"

Can someone tell me why it doesn't expand when called from the browser?

I am using RH9.0

perl -v: This is perl, v5.8.0 built for i386-linux-thread-multi (with 1 registered patch, see perl -V for more detail)