On Jul 24, Tassilo von Parseval said:
On Sun, Jul 24, 2005 at 02:44:12AM -0400 Jeff 'japhy' Pinyan wrote:
for (...) {
my $code = sub { ... };
no strict 'refs';
*$_ = $code;
}
for (...) {
no strict 'refs';
*$_ = sub {
use strict;
...
};
}
There's also the somewhat ugly:
for (...) {
*{; no strict 'refs'; \*$_ } = sub { ... };
}
I think it's awfully obfuscated, though. Yes, I could see it being
written this way:
for (...) {
*{;
no strict 'refs';
\*$_} = sub { ... };
}
and driving people to madness.
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://japhy.perlmonk.org/ % have long ago been overpaid?
http://www.perlmonks.org/ % -- Meister Eckhart