in reply to Re: ls piped tpo perl -pe runs indefintely
in thread ls piped tpo perl -pe runs indefintely

Maybe a bit more clear:

perl -E'for (@ARGV) { say $_ if -d $_}' *