Inversion of control in Perl 6