Group
Extension

Matches 1

Data-Phrasebook-Loader-JSON-Syck ( S/ST/STEVAN/Data-Phrasebook-Loader-JSON-Syck-0.01.tar.gz, STEVAN, 2006; MetaCPAN )
Data-Phrasebook-Loader-JSON-Syck/lib/Data/Phrasebook/Loader/JSON/Syck.pm ( view source; MetaCPAN )

package Data::Phrasebook::Loader::JSON::Syck;

use strict;
use warnings;

use Carp        'croak';
use JSON::Syck  ();
use File::Slurp ();

use Data::Phrasebook;

our $VERSION = '0.01';

use base 'Da
 not be found";        
    my $json = File::Slurp::slurp($filename) or croak "Could not slurp JSON file '$filename' got no data";
    my $d    = JSON::Syck::Load($json);
    (ref($d) eq 'HASH')
     
JSON file '$filename'";
	$class->{JSON} = $d;    
}

sub get { 
	my ($class, $key) = @_;
	return undef unless $key;
	return undef unless $class->{JSON};
	$class->{JSON}->{$key};    
}

#sub dicts    {

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.