… | |
… | |
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_tags::reload & |
31 | ext::map_world::reload & |
35 | ext::map_world::reload & |
32 | EOF |
36 | EOF |
33 | print "\n> "; |
37 | print "\n> "; |
34 | |
38 | |
35 | Event->io (fd => $fh, poll => 'r', data => 0, cb => sub { |
39 | Event->io (fd => $fh, poll => 'r', data => 0, cb => sub { |
… | |
… | |
58 | print "result:\n", cf::dumpval @res > 1 ? \@res : $res[0] if @res; |
62 | print "result:\n", cf::dumpval @res > 1 ? \@res : $res[0] if @res; |
59 | print "\n> "; |
63 | print "\n> "; |
60 | }; |
64 | }; |
61 | |
65 | |
62 | if ($cmd =~ s/\s*&$//) { |
66 | if ($cmd =~ s/\s*&$//) { |
63 | Coro::async_pool { $sub->() }; |
67 | Coro::async { $sub->() }; |
64 | } else { |
68 | } else { |
65 | $sub->(); |
69 | $sub->(); |
66 | } |
70 | } |
67 | } |
71 | } |
68 | |
72 | |