in reply to Rebinding closures
I still don't understand the deal with the grepping. Why not just use a hash?
sub rebind_closure { my $sub = shift; # Let Perl do the odd-numbered hash error handling for you! my %replacement_pairs = @_; my @rules = keys %replacement_pairs; my @replacements = values %replacement_pairs; # ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Rebinding closures
by diotalevi (Canon) on Dec 18, 2003 at 04:00 UTC | |
by jryan (Vicar) on Dec 20, 2003 at 02:45 UTC | |
by diotalevi (Canon) on Dec 21, 2003 at 04:02 UTC |