|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^2: Disk based hash (as opposed to RAM based)by thomas895 (Friar) |
| on Oct 07, 2012 at 20:44 UTC ( #997719=note: print w/ replies, xml ) | Need Help?? |
|
One way around the limitation would be to store your array values as joined strings:That works for simple strings, but once you get to more diverse strings, you should probably consider a serializer. I find that JSON::XS works great for this purpose, as does Data::Dumper with an eval. The latter method may not always be the best choice, though. JSON is more portable and can be read by another non-Perl application more easily. For example:
HTH
~Thomas~ confess( "I offer no guarantees on my code." );
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||