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.
Capsulate Net::POP3 and Email::MIME and Encode, return headers and body respectively. Just like action of
Load JSON file to be a NG object(
Load YAML file to be a NG object(
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.
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.
Now we implment few ojbect base on
<Object> as follow:
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.