package test; my $function = sub { 1 .. 10 }; # später... $function->();