Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables not printing on web page...

Status
Not open for further replies.

MissouriTiger

Programmer
Oct 10, 2000
185
0
0
US
I haven't written any Perl code in over 2 years. I know I must be doing something wrong syntactically here. The following code when displayed in a web browser doesn't display the vaqlues of the variabvles, but displays the variable names themselves. What am I doing wrong? Any help would be greatly appreciated.

Note: I also tried it with "print << 'STOP_PRINTING';" which didn't work either.

THE CODE:

print "<tr width='100\%' align=center BORDER=0
BGCOLOR=$bgcolor>\n";
print " <td width='60\%' align=left>\n";
print " <font face='arial, helvetica'size='3'
color='330099'>\n";
print " <b>$nextFirstName $nextLastName</b></font>\n";
print " </td>\n";



Greg Norris
Software Developer
Marietta, Georgia

________________________________________________
Constructed from 100% recycled electrons.
 
The program looks good to me.

Did you try running the program from the command prompt/shell before trying it in the browser.
 
if you use perl to print the code the variables should not be displayed as they are inside of double-quoted strings. The problem is elsewhere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top