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

With respect to the first code instance, if I have (2 directories, 3 files) ...

../ ./ p/ q/ r s t

... then *nothing* is printed (perl 5.8.8, CentOS 6, zsh 4). If I remove the while loop (-n option), expected output is printed.