NG - Newbie::Gift or Next::Generation?? hoho~
Newbie::Gift is a repo lanched by Achilles Xu. He wants to write a sub-language which exports useful keywords as many as possible, has a simple Object-oriented syntax as php4 or java-0.1, and uses callback replace return values as nodejs.
Idea comes because Steven Little's Moe.
Before Achilles implement all the base object and syntax one day in the future, I just try to write this module for only exporting some keywords useful to myself.
Maybe some day Achilles will give us a brand-new and beautiful syntax, maybe lisp-like.
Everyone interested click please: https://github.com/PerlChina/Newbie-Gift.
Though I like Function::Parameters very much, but sub features maybe re-implemented by Achilles, so I donot import them. By now, there are only few keywords export:
Capsulate IPC::Open3 for STDOUT/STDERR, no more exec/system, idea from Rex.
TODO
Capsulate AnyEvent::HTTP and HTML::TreeBuilder, idea from Mojo::UserAgent and Mojo::DOM.
Capsulate Net::POP3 and Email::MIME and Encode, return headers and body respectively. Just like action of <web_get>.
<web_get
Load JSON file to be a NG object(<Array> or <Hashtable>).
<Array
<Hashtable
Load YAML file to be a NG object(<Array> or <Hashtable>).
Capsulate open and while, use callback for each line.
Capsulate glob and File::Find, use callback for find, while return value for glob.
No one want calculate file mode and ctime/mtime/atime anymore. I implement a <Time> object and file_stat will return such object.
<Time
Capsulate split for log process, use callback for each line and each field.
use Geo::IP or match ip from a YAML-like ipaddr database by yourself.
Capsulate DBI CRUD operator, idea from Dancer::Plugin::Database::Handle. But use SQL::Abstract for %options.
Now we implment few ojbect base on <Object> as follow:
<Object
<Array>, <Hashtable>, <SHashtable>, <Time>, <HTTP::DOM>, <Excel>
<SHashtable
<HTTP::DOM
<Excel
Chenryn <rao.chenlin@gmail.com> Achilles <formalin14@gmail.com> Terrence <hanliang1990@gmail.com>
<rao.chenlin@gmail.com>
<formalin14@gmail.com>
<hanliang1990@gmail.com>
Copyright 2009-2012 chenryn, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.14 itself.
To install NG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NG
CPAN shell
perl -MCPAN -e shell install NG
For more information on module installation, please visit the detailed CPAN module installation guide.