Tie::StringArray - use a tied string as an array of chars
use Tie::StringArray; tie my @array, 'Tie::StringArray', qw(137 88 54);
The Tie::StringArray module is a demonstration from Mastering Perl. It stores integers between 0 and 255 as a single character in a string that acts like an array through tie. Behind the tie, the array is a single string, so there's only one scalar to store.
Tie::StringArray
tie
I don't think this is particularly useful for anything real.
This source is in Github:
http://github.com/briandfoy/tie-stringarray/
brian d foy, <briandfoy@pobox.com>
<briandfoy@pobox.com>
Copyright © 2005-2024, brian d foy <briandfoy@pobox.com>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.
To install Tie::StringArray, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::StringArray
CPAN shell
perl -MCPAN -e shell install Tie::StringArray
For more information on module installation, please visit the detailed CPAN module installation guide.