|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Re: Oddity...losing filename from stdin - very wierdby 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.
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. :)
_
_
_
_
_
_
_
_
_
_
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||