use strict; my @x = somefunction(); for (@x) { *{; no strict 'refs'; \*$_} = sub { # ... }; } [download]
In reply to What is this doing, and why is this a good method of doing it? by japhy