my $init = eval <(); ... # and later onAwaken... $awaken->();