|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Oddity...losing filename from stdin - very wierdby snafu (Chaplain) |
| on Apr 09, 2002 at 12:36 UTC ( [id://157772]=perlquestion: 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.snafu has asked for the wisdom of the Perl Monks concerning the following question:
So me and a co-worker are trying to do a very simple task. We want to do some file manipulation on a single file and for now we are testing some things from command line which is where we found this lil strangity (this a word?). Given a known filename and due to the way we are going to run the finished product, we want to take that filename from stdin and work it a lil. So, we did the following: For now, "saveme" is our test file (and its a blank touched file).
Mind you that this snippet is only one thing we tried. Also note that we realize that there are a plethora of other ways to do this so that it works. However, it is this one phenomena that we are curious about.
Some of the other things we tried were:
What am I (are we) missing here? It has to be some fundamental rule I am forgetting/disregarding. TIA
_
_
_
_
_
_
_
_
_
_
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||