Tie::StringArray - use a tied string as an array of chars
use Tie::StringArray; tie my @array, 'Tie::StringArray', qw(137 88 54);
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.
I don't think this is particularly useful for anything real.
This source is in Github:
brian d foy,
Copyright © 2005-2018, brian d foy <firstname.lastname@example.org>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.