I changed the name of my model class to MoCo.pm
It's light & fast Model Component.
http://search.cpan.org/dist/MoCo/ (it's processing now)
Also, I implemented session features today.
You can delay your update/create operation using MoCo's session.
If you call MoCo->start_session once, a session will be started and update/create queries will be delayed until the session will be ended or save method will be called expressly.
# in your web server etc..
MoCo->start_session;
# in your scripts
my $user = Blog::User->retrieve(123);
$user->name('jkondo'); # not saved now. changed in cache.
print $user->name; # 'jkondo'
$user->save; # update db
print Blog::User->retrieve(123)->name; # 'jkondo'
# Or, update queries will be thrown automatically after ending session.
$user->name('jkontan');
Moco->end_session;
print Blog::User->retrieve(123)->name; # 'jkontan'
Name (Score:2)
agreed - prefer the old name (Score:2)
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Re: (Score:1)
Thank you for your opinion.