DBM::Deep::Cookbook
This is the Cookbook for "" in DBM::Deep. It contains useful tips and tricks, plus some examples of how to do common tasks.
When you're using UTF8 data, you may run into the "Wide character in print" warning. To fix that in 5.8+, do the following:
my $db = DBM::Deep->new( ... ); binmode $db->_fh, ":utf8";
In 5.6, you will have to do the following:
my $db = DBM::Deep->new( ... ); $db->set_filter( 'store_value' => sub { pack "U0C*", unpack "C*", $_[0] } ); $db->set_filter( 'retrieve_value' => sub { pack "C*", unpack "U0C*", $_[0] } );
In a future version, you will be able to specify utf8 =gt 1 and "" in DBM::Deep will do these things for you.
utf8 =gt 1
1 POD Error
The following errors were encountered while parsing the POD:
'=end' without a target?
To install DBM::Deep, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBM::Deep
CPAN shell
perl -MCPAN -e shell install DBM::Deep
For more information on module installation, please visit the detailed CPAN module installation guide.