Hoot has asked for the wisdom of the Perl Monks concerning the following question:
I have the following:
"Address Book for Hoot"
but at the moment it is printing
"Address Book for - Netscape"
What I want is the Title to read#!/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");
"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)
Back to
Seekers of Perl Wisdom