GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Badger::Codec::Storable(3) User Contributed Perl Documentation Badger::Codec::Storable(3)

Badger::Codec::Storable - encode/decode data using Storable

    use Badger::Codec::Storable;
    
    my $codec = Badger::Codec::Storable->new();
    my $enc   = $codec->encode({ pi => 3.14, e => 2.718 });
    my $dec   = $codec->decode($encoded);

This module implements a subclass of Badger::Codec which uses the "freeze()" and "thaw()" subroutines provided by the Storable module to encode and decode data.

It a very thin wrapper around the Storable module and offers no functional advantage over it. It exist only to provide a consistent API with other Badger::Codec modules.

Encodes the data referenced by the first argument using "freeze()".

    $encoded = Badger::Codec::Storable->encode($data);

Decodes the encoded data passed as the first argument using "thaw()".

    $decoded = Badger::Codec::Storable->decode($encoded);

This method returns a reference to the real subroutine that's doing all the encoding work, i.e. the "freeze()" method in Storable.

This method returns a reference to the real subroutine that's doing all the decoding work, i.e. the "thaw()" method in Storable.

Andy Wardley <http://wardley.org/>

Copyright (C) 2005-2009 Andy Wardley. All rights reserved.

Badger::Codec, Storable
2016-12-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.