Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Oddity...losing filename from stdin - very wierd

by snafu (Chaplain)
on Apr 09, 2002 at 13:01 UTC ( [id://157785]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 19: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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://157785]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.