in reply to aborting File::Find::find
Perhaps the easiest way is to die, and wrap the find call with eval.
eval { find( sub { ...; --$fnlinks or die; }, $dir ); };
Update: Another goto-like solution, if you don't like the idea of generating an exception:
UNLINKS: { find( sub { ...; --$fnlinks or last UNLINKS; }, $dir ); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: aborting File::Find::find
by Limbic~Region (Chancellor) on Nov 16, 2006 at 18:42 UTC | |
Re^2: aborting File::Find::find
by Fletch (Bishop) on Nov 16, 2006 at 18:27 UTC | |
Re^2: aborting File::Find::find
by marvell (Pilgrim) on Nov 16, 2006 at 18:16 UTC | |
by jbert (Priest) on Nov 17, 2006 at 10:14 UTC |