in reply to Re: Re: Reading form data and printing variables using CGI.pm
in thread Reading form data and printing variables using CGI.pm

Greetings cal,

In Perl, using a single quote simply reads a string literally, but a double quote interprets a string. In your code, you have single quotes around the string where you use $Firstname. So what gets printed is literally "$Firstname". You actually want Perl to interpret the variable, so...

print header(), start_html( -title => 'CGI.pm Example Script'), h1('Hello World!'), "is the value of $Firstname", end_html();

-gryphon
code('Perl') || die;