| Acme-Coro-Suke documentation | Contained in the Acme-Coro-Suke distribution. |
Acme::Coro::Suke - the only real corosuke in benzo
use Coro;
use Acme::Coro::Suke;
benzo {
print "コロ助君、ワス幸せっス\n";
cede;
print "・・・\n";
};
print "1\n";
cede; # inside to benzo
print "2\n";
cede; # and again
This module emulate to corosuke x benzo.
Masahiro Chiba <chiba@geminium.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Acme-Coro-Suke documentation | Contained in the Acme-Coro-Suke distribution. |
package Acme::Coro::Suke; use strict; use warnings; use utf8; our $VERSION = '0.01'; use Coro; use Encode; use base qw/Exporter/; our @EXPORT = qw/benzo/; our $SERIF = Encode::encode('utf-8', "ãããâ¦ã¹ãããããã®ä¸â¦ããããã£ãããããªã⦠\n"); sub benzo(&) { ## my $sub = shift; async { Coro::on_enter { print $SERIF; }; $sub->(); }; } 1; __END__