in reply to Style Sheet Doesn't Display Styles
Ok... Another tidbit of information that may shed some light on this.
I changed my script to read as follows:
Note that both $body and $body2 are short strings of three chars each. It seems that adding the $body2 into the printed html code makes it so the styles don't display as well. *scratches head* Perhaps the problem is something else and not just long strings?#!/usr/local/bin/perl print "Content-type: text/html\n\n"; my $body = "123"; my $length = length($body); my $body2 = "abc"; my $length2 = length($body2); print<<bob; <html> <head> <!-- Style Sheet Here --> <link href="./training_site.css" rel="stylesheet" type="text/css"> <title></title> </head> <body> <p class="bodytext">Body variable *$body* has $length chars</p> <p class="bodytext">Body variable *$body2* has $length2 chars</p> </body> </html> bob
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Style Sheet Doesn't Display Styles
by duckyd (Hermit) on Jul 19, 2006 at 21:14 UTC | |
by JaredHess (Acolyte) on Jul 19, 2006 at 21:28 UTC | |
|
Re^2: Style Sheet Doesn't Display Styles
by ikegami (Patriarch) on Jul 19, 2006 at 21:11 UTC | |
by JaredHess (Acolyte) on Jul 19, 2006 at 21:20 UTC | |
by ikegami (Patriarch) on Jul 19, 2006 at 21:33 UTC | |
by ww (Archbishop) on Jul 20, 2006 at 14:43 UTC |