Faster perl operation?
JT Moree
moreejt at pcxperience.com
Thu Jan 18 07:50:00 MST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFr4kY1JwGi/ukQqERAiHaAJ4v6nWIxQaNCZ4e/Q99wlSRmQeiZgCg1vA/
QXQPNvD4n8O7CCTehRlVnKQ=
=a6BB
-----END PGP SIGNATURE-----
--
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.
More information about the PLUG-discuss
mailing list