Venus::Dump - Dump Class
Dump Class for Perl 5
package main; use Venus::Dump; my $dump = Venus::Dump->new( value => { name => ['Ready', 'Robot'], version => 0.12, stable => !!1, } ); # $dump->encode;
This package provides methods for reading and writing dumped (i.e. stringified) Perl data.
This package has the following attributes:
decoder(CodeRef)
This attribute is read-write, accepts (CodeRef) values, and is optional.
(CodeRef)
encoder(CodeRef)
This package inherits behaviors from:
Venus::Kind::Utility
This package integrates behaviors from:
Venus::Role::Accessible
Venus::Role::Buildable
Venus::Role::Explainable
Venus::Role::Valuable
This package provides the following methods:
decode(Str $text) (Any)
The decode method decodes the Perl string, sets the object value, and returns the decoded value.
Since 0.01
0.01
# given: synopsis; my $decode = $dump->decode('{codename=>["Ready","Robot"],stable=>!!1}'); # { codename => ["Ready", "Robot"], stable => 1 }
encode() (Str)
The encode method encodes the objects value as a Perl string and returns the encoded string.
# given: synopsis; my $encode = $dump->encode; # '{name => ["Ready","Robot"], stable => !!1, version => "0.12"}'
Awncorp, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2000, Al Newkirk.
This program is free software, you can redistribute it and/or modify it under the terms of the Apache license version 2.0.
To install Venus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Venus
CPAN shell
perl -MCPAN -e shell install Venus
For more information on module installation, please visit the detailed CPAN module installation guide.