|
|
sybperl-l Archive
Up Prev Next
From: philip mikal <philipm at nafohq dot hp dot com>
Subject: Speed Question
Date: Mar 13 1998 3:13AM
Hello:
I thought I'd break up the usual "won't compile" question with:
Which of the following would be faster:
Evaluation for a pattern match in a 100 element array.
or
5 calls to the following code block:
$dbh->dbcmd("$select");
$dbh->dbsqlexec;
$dbh->dbresults;
while (($current_category, $current_category_id, $current_category_parent) = @data = $dbh->dbnextrow) {
push(@blah_results, "$current_category ");
$count++;
}
Your answer and any other comments are appreciated.
Regards,
Philip Mikal
philipm@nafohq.hp.com
|