Re: Faster perl operation?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: JT Moree
Date:  
To: Main PLUG discussion list
Subject: Re: Faster perl operation?
Joshua Zeidner wrote:
>
> Jerry, I had the same idea, but are you sure that this operation will
> not allocate a new buffer and copy the entire string( essentially
> eliminating the benefit )?


Is there a pattern to the output? Is the next one always longer than
the last one? If so just add the difference onto the last one

my $variable = ".";
while (whatever)
{
$diff = "." x ($start - 1 - (length $variable));
$variable .= $diff;
}

- --
JT Morée
PC Xperience, Inc.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss