28 Aug 2013 09:48:38 UTC
- Distribution: Data-Undump
- Module version: 0.15
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (2042 / 667 / 0)
- KwaliteeBus factor: 1
- 100.00% Coverage
- License: unknown
- Activity24 month
- Download (193.99KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userRGARCIA Rafaël Garcia-Suarezand 1 contributors
- Yves Orton
- POTENTIAL ENHANCEMENTS
- SEE ALSO
- COPYRIGHT AND LICENSE
Data::Undump - Perl extension for securely and quickly deserializing simple Data::Dumper dumps
use Data::Undump qw(undump); my $dump= Data::Dumper->new([$simple_thing])->Terse(1)->Dump(); undump($dump);
Securely and quickly deserialize simple Data::Dumper dumps.
Note that this is an early release. Please contact the author(s) if you intend to use this software in production.
By default exports the
Undumps a Data::Dumper style data structure. Takes a plain string (magic not currently respected) containing a Data::Dumper Terse/Deepcopy style
Dumperoutput (ie. no
$VAR1 =at the front allowed currently) and returns either undef for a failed parse, or a scalar value of the value parsed. Also, in case of a failed parse, an error message will be available in the
Restricted to objects nested up to 100 items deep.
Support for the following isn't implemented but might be in future enhancements.
* String magic on input scalar * qr// * ref to object. Eg \['foo'] * Make it possible to parse a list instead of a scalar. * Blessed objects? * Cyclic structures? * Less/more tolerant parsing rules? * Filters? (Block things by their position in the structure?) * Conversion? (IE, we have '[1,1,1]' in the input, and we know we wont * need it so parse it as '1,1,1' instead.
Yves Orton <email@example.com>
with contributions by:
Steffen Mueller <firstname.lastname@example.org> Rafael Garcia-Suarez <email@example.com>
Copyright (C) 2012 by Yves Orton
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
A git repository for this distribution can be found at https://github.com/demerphq/Data-Undump.