try this:
my $row;
print "";
while($row = $dbh->fetch()) {
print Tr([td([@$row[1..18]])]);
}
print "";
This only pulls a database resultset row into memory when you need. In your
earlier example you pull everything into memory first and then print it out.
This can be quite inefficient.
Hello Susan and cgi group.
On Tue, Jul 17, 2001 at 10:57:35AM -0700, Susan wrote:
> Does anyone know of a cgi or perl script that will work for taking the information
>from an online form, inputting the data onto a form on a word doc and then having
>that word doc form emailed to the email ad
Hi,
I have to display some tables with several hundreds of rows in one
page. It takes more than 30s for 150 rows with that code:
$recordset = $dbh->selectall_arrayref($query, undef);
print "";
foreach $row(@$recordset)
{
print T
I see a couple things here that are common mistakes that can be real hard
to find if you are just starting out
Also, you CAN use a here document without quoting the end tag... So that
is probably not the problem...
... code ...
> if ($guess = "") {
OOPS! With ($guess = "") you are assi
In my experience with Perl, whenever you use the construct 'print
<<"tag_name";' you need to surround it with either single quotes (') or
double quotes ("). That's the only thing that I see that could be wrong.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message--
At 07:57 AM 07/20/2001 -0400, Helen Dickey wrote:
>Thank you so far. I now get
>"(myfile).pl has too many errors." when I try my perl script.
>Is there any debugging tool for perl scripts?
perldoc perldebug
Aloha,
mel
--
mel matsuokaHawaiian Image Productions
Chief Executiv
Thank you so far. I now get
"(myfile).pl has too many errors." when I try my perl script.
Is there any debugging tool for perl scripts?
Helen
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'd like to take some strings encoded in big5, convert them to utf-8,
and send them to the browser. The following script runs but doesn't
convert the strings correctly. The cgi is run by Apache on Redhat 7.1.
Perl is 5.6.0. Have I garbled the syntax for Unicode::Map and
Unicode::String?
Thanks,
M
Hello David,
Friday, July 20, 2001, Nazary, David <[EMAIL PROTECTED]> wrote:
ND> Hi,
ND> When I use the following script to send mail:
[...]
ND> I get this error message. Any ideas how I can resolve this?
C:\CM\utils>>c:\perl\bin\perl smtp_mailer2.pl
ND> The system cannot find the path spec