Acme::SvGROW - syntax for pre-extending a string's storage, like the proposed use of length as an L-value
length
use Acme::SvGROW; SvGrow($BigString, 100000); # when l-value subroutines are available (5.8 and later) SvGrow($BigString, 100000) = InitialValueOfBigString();
Trivial module implementing string storage preallocation using techniques shared on perl5-porters mailing list November 4 and 5, 2009
the SvGROW subroutine is exported. It takes two arguments, the first the string to extend and the second the length.
SvGROW
perlguts
Data::Peek for a benchmarking of the alternatives
The author of this module is in favor of allowing length to be used as an lvalue to thinly invoke the SvGROW internals macro
Data::Peek::DGrow will be used if available
David Nicol davidnico@cpan.org
Public domain: use at will.
To install Acme::SvGROW, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::SvGROW
CPAN shell
perl -MCPAN -e shell install Acme::SvGROW
For more information on module installation, please visit the detailed CPAN module installation guide.