in reply to Re^2: coderef for 1 .. 2?
in thread coderef for 1 .. 2?

By the way, that code has a memory leak (cyclic reference ($fetch contains a reference to a closure which captures $fetch)).

Replace

my $fetch; $fetch = sub { ... $fetch->(); ... }; ... $fetch->(); ...

with

use feature qw( current_sub ); my $fetch = sub { ... __SUB__->(); ... }; ... $fetch->(); ...