you're right. this is a bad post. i was going on 24 hours of no sleep and i didn't test enough before i posted. i just tested a simplified version of the code and there's no problem with valign. for the sake of answering the question i'll post the code, but as i said, it works. this lazy method i'm using probably "breaks" the html somehow, because the tags in format.pl are right but the valign tag isn't getting picked up. or maybe i'm still smoking crack. anyway, i have to graduate to a better way of handling html on this one. thanks again for the suggestions and the ass-kicking. i know i'm loved.
Perl script:
require "format.pl";
& startcontent;
#PRINT THE SUBMENU CONTENT FOR THE SELECTED MENU ITEM
open (FILE, $content) or die "Can't open file!";
my @scoop = <FILE>;
close(FILE);
foreach my $sline(@scoop)
{
print $sline;
}
& endcontent;
format.pl:
sub startcontent{
print <<'END';
<table>
<tr>
<td valign="top">
END
}
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|