no strict 'refs'; for my $f (@_) { *{"$caller\::$f"} = sub { print "$f\n" }; }