sub func_using_comparer(&@) { my $cb = shift; my $ap = do { no strict 'refs'; \*{caller().'::a'} }; my $bp = do { no strict 'refs'; \*{caller().'::b'} }; local *$ap; local *$bp; ... loop { ... *$ap = \$value1; *$bp = \$value2; $cb->(); ... }; ... }
In reply to Re: just how special are $a and $b these days?
by ikegami
in thread just how special are $a and $b these days?
by davidnicol
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |