On Fri, Nov 01, 2002 at 06:04:39PM -0600, Dr. Poo wrote: > What i am trying to do is set up a very rudimentary logging system. I want to > log everything that is directed to STDOUT. And the way i'd like to try to do > this is have an array declared that will "read" STDOUT and store the contents > to the array rather than print them to the screen. (or they can go to the > screen too... but i'd rather them not.)
Close STDOUT, and then open it in any way you want. It's probably easier to go dirent to a file rather than an array. If you have 5.8.0 you can send STDOUT to a scalar. perldoc -f open > This may be a very complicated task, and if it is, tell me so and i'll try to > come up with something else. Cause i'm not looking to spend days on this. I > was just curious if anyone knew how to do it or if there was a built-in > function or something to accomplish this. Two lines long ... > PS. To the ones who do most of the answering and helping on this list... How > many years (roughly) have you all been "perling"? Cause i'd really like to > help out on the list, but i feel sometimes other people's answers would be > much better than mine, and thus, i whimp out on trying to help. I've been > "perling" for about one year now... > Or, besides how many years have you been "perling", what is it that you've > done to get the know-how you have to answer all these questions? Classes, > projects, work, free-lance, friends, used thousands of other languages, live > in a tylenol factory!, all of the above? Hmmm. I've been using Perl pretty much since the beginning. At that point there were manpages, source code and useful newsgroups ;-) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]