NG
(
C/CH/CHENRYN/NG-0.001_05.tar.gz, CHENRYN, 2013;
MetaCPAN
)
package NG;
use strict;
use warnings;
use Try::Tiny;
use autodie;
use YAML::XS ();
use JSON::XS ();
use XML::Simple;
use Spreadsheet::ParseExcel;
use NG::Autobox;
use NG::Array;
use NG::DB;
use NG::Ex
RT = qw(
local_run
remote_run
fork_run
taskset
web_get
mail_send
mail_get
from_json
from_yaml
mkdir_p
rm_r
cp_r
read_file
read_dir
file_stat
process_log
geo_ip
Hashtable->new($ref)
: NG::Array->new($ref);
}
sub from_json {
my $data = &read_file(@_);
my $ref = JSON::XS::decode_json($data);
return ref($ref) eq 'HASH'
? NG::Hashtable->