PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

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