24 Aug 2010 04:57:18 UTC
- Distribution: CGI-Session-Serialize-yaml
- Module version: 4.26
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (751 / 70 / 0)
- KwaliteeBus factor: 2
- % Coverage
- License: artistic_1
- Activity24 month
- Download (5.26KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionRSAVAGE Ron Savage
CGI::Session::Serialize::yaml - serializer for CGI::Session
This library can be used by CGI::Session to serialize session data. It uses
YAML, or the faster C implementation,
YAML::Syckif it is available. YAML serializers exist not just for Perl but also other dynamic languages, such as PHP, Python, and Ruby, so storing session data in this format makes it easy to share session data across different languages.
YAML is made to be friendly for humans to parse as well as other computer languages. It creates a format that is easier to read than the default serializer.
- freeze($class, \%hash)
Receives two arguments. First is the class name, the second is the data to be serialized. Should return serialized string on success, undef on failure. Error message should be set using
- thaw($class, $string)
Received two arguments. First is the class name, second is the
YAMLdata string. Should return thawed data structure on success, undef on failure. Error message should be set using
Module Install Instructions
To install CGI::Session::Serialize::yaml, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install CGI::Session::Serialize::yaml
For more information on module installation, please visit the detailed CPAN module installation guide.