in reply to Re: Recursively walk up a directory tree
in thread Recursively walk up a directory tree

Thanks choroba, I knew there must be a way with until! Maybe even more elegant as:

my $path = Path::Tiny->cwd; $path = $path->parent until -f "$path/.marker" or $path->is_rootdi +r;


The way forward always starts with a minimal test.