Squatting 0.60 hits CPAN
April 27, 2009
Hot on the hooves of Catalyst 5.8 (CataMoose) hitting CPAN came the latest version of Squatting (web microframework) following very close on its tail.
Here are some new things to look out for in latest Squatting…
- More docs
- Squatting::With::Logs – Simple way to log errors
- Squatting::With::Coro::Debug – Use Coro::Debug to help debug Squatting::On::Continuity apps
- Can now squat on mod_perl 1.3 & mod_perl 2.0
- And a little extra stocking filler called Squatting::H
Squatting::H is hash based object loosely based on Camping::H (Ruby). Here is an example from its pod to make you puurrrr a little π
my $cat = Squatting::H->new({ name => 'kurochan', meow => sub { "me" . "o" x length($_[0]->name) . "w" } }); my $kitty = $cat->clone({ name => 'max' }); $cat->name; # "kurochan" $kitty->name; # "max" $cat->meow; # "meoooooooow" $kitty->meow; # "meooow" $cat->age(3); # 3 $kitty->age(2); # 2 $kitty->slots; # qw(name meow age)
/I3az/
No comments yet