in reply to Re: Oddity...losing filename from stdin - very wierd
in thread Oddity...losing filename from stdin - very wierd

Fellow monk, if I could vote you up anymore I would. You are correct! It did not occur to me that perl is invoked for every instance of output from ls. Thus, it was not necessary to push the output of ls into a while loop (unles I wanted to do something more granular to the output of each instance from ls). Thanks a bunch! See? It was something I was doing wrong! :)

Another lesson learned! I'll log that away! :) Thank you much!

_ _ _ _ _ _ _ _ _ _
- Jim
Insert clever comment here...

  • Comment on Re: Re: Oddity...losing filename from stdin - very wierd

Replies are listed 'Best First'.
Re: Re: Re: Oddity...losing filename from stdin - very wierd
by hossman (Prior) on Apr 09, 2002 at 23:22 UTC
    You missread what Dog & Pony is saying. Perl isn't "Invoked for every instance of output from ls" ... the problem you had was using the -n option of perl in addition to your own while loop. You need one, or the other, but not both.