… | |
… | |
22 | You can freely use \$a .. \$z and \@l and \%l |
22 | You can freely use \$a .. \$z and \@l and \%l |
23 | |
23 | |
24 | Useful commands (note the '&'): |
24 | Useful commands (note the '&'): |
25 | |
25 | |
26 | reload_perl & |
26 | reload_perl & |
|
|
27 | reload_config & |
27 | reload_regions & |
28 | reload_regions & |
28 | reload_facedata & |
29 | reload_facedata & |
29 | reload_treasures & |
30 | reload_treasures & |
30 | reload_archetypes & |
31 | reload_archetypes & |
|
|
32 | ext::help::reload & |
|
|
33 | ext::books::reload & |
|
|
34 | ext::map_world::reload & |
31 | EOF |
35 | EOF |
32 | print "\n> "; |
36 | print "\n> "; |
33 | |
37 | |
34 | Event->io (fd => $fh, poll => 'r', data => 0, cb => sub { |
38 | Event->io (fd => $fh, poll => 'r', data => 0, cb => sub { |
35 | if (defined (my $cmd = <$fh>)) { |
39 | if (defined (my $cmd = <$fh>)) { |
… | |
… | |
57 | print "result:\n", cf::dumpval @res > 1 ? \@res : $res[0] if @res; |
61 | print "result:\n", cf::dumpval @res > 1 ? \@res : $res[0] if @res; |
58 | print "\n> "; |
62 | print "\n> "; |
59 | }; |
63 | }; |
60 | |
64 | |
61 | if ($cmd =~ s/\s*&$//) { |
65 | if ($cmd =~ s/\s*&$//) { |
62 | Coro::async_pool { $sub->() }; |
66 | Coro::async { $sub->() }; |
63 | } else { |
67 | } else { |
64 | $sub->(); |
68 | $sub->(); |
65 | } |
69 | } |
66 | } |
70 | } |
67 | |
71 | |