Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl Monk, Perl Meditation
 
PerlMonks  

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

by snafu (Chaplain)
on Apr 09, 2002 at 12:56 UTC ( [id://157783]=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

Right. You are getting into the other ways to do the task and if you are saying that there is no other way to do what we want then I suppose I can go with that but reluctantly. I definitely see something wrong here. What I am trying to do should be possible to do and it probably is but I am doing something wrong.

Your first example is not what I trying to do. I am not trying to get the contents of the file but am actually trying to pipe the filename itself to the perl script. Again, note, that the reason we are doing it this way is for a more grand scheme so this is only pseudocode (if you will) but it is a good mimic of what we want to do in the end.

Your second example, while a good thought, is still steering away from how we want to work the idea. You are using Perl to glob the files. What we want to do is simply send a single filename to perl via ls. :)

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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://157783]
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.