Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Badger::Codec::StorablUser Contributed Perl DocumentBadger::Codec::Storable(3)

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

SYNOPSIS
	   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);

DESCRIPTION
       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.

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

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

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

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

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

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

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

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

SEE ALSO
       Badger::Codec, Storable

perl v5.32.0			  2016-12-12	    Badger::Codec::Storable(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | AUTHOR | COPYRIGHT | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Badger::Codec::Storable&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help