in reply to Re: Flip-flop reset?
in thread Flip-flop reset?
At first, your way seems a little too indirect and magical, but it makes perfect sense if you create a 'flip-flop generator':my $range_checker = eval 'sub { local $_ = shift; /foo/../bar/ }';
sub mk_flip_flop { my ( $re1, $re2 ) = @_; sub { local $_ = shift; /$re1/../$re2/ } }
|
|---|