| 1 | use strict; | ||
| 2 | package Event::type; | ||
| 3 | |||
| 4 | sub import { | ||
| 5 | shift; # ignore our package | ||
| 6 | for my $t (@_) { | ||
| 7 | if ($t =~ m/^\:/) { | ||
| 8 | if ($t eq ':all') { | ||
| 9 | Event::_load_watcher($_) for qw(idle io signal timer var); | ||
| 10 | } else { | ||
| 11 | # silently ignore | ||
| 12 | } | ||
| 13 | } else { | ||
| 14 | Event::_load_watcher($t) | ||
| 15 | } | ||
| 16 | } | ||
| 17 | } | ||
| 18 | |||
| 19 | 1; |