Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!mips!apple!csl!hercules!hogan From: hogan@csl.sri.com (Emmett Hogan) Newsgroups: comp.lang.perl Subject: ***WARNING PERL NOVICE ALERT*** Message-ID: Date: 31 May 91 23:45:32 GMT Sender: news@csl.sri.com (NEWS Administrator) Distribution: comp Organization: Computer Science Lab, SRI International, Menlo Park, CA. Lines: 32 Hi I am having a couple of strange problems writing a simple report formatter (actually a report re-formatter to reformat the quot report), and I was hoping you PERL gurus might be able to help. 1) I am using two formats, one for the data and the "top" format. My problem is that if I do the "write" to STDOUT, everything is fine and dandy, but if I do a write to a file, I lose the first line of data, but the headers print out just fine. 2) Is there any way to prompt the user for input, plus have the program accept data from STDIN? I know it's a long shot, but what I would like to be able to do is: % quot | quot-report.pl Detailed Report [y/n]? <---- this is a prompt from my program In C I believe I would be able to open /dev/tty for input, can I do this in PERL? Thanks in Advance, Emmett -- ------------------------------------------------------------------- Emmett Hogan Computer Science Lab, SRI International Inet: hogan@csl.sri.com UUCP: {ames, decwrl, pyramid, sun}!fernwood!hercules!hogan USMAIL: EL231, 333 Ravenswood Ave, Menlo Park, CA 94025 PacBell: (415)859-3232 (voice), (415)859-2844 (fax) ICBM: 37d 27' 14" North, 122d 10' 52" West -------------------------------------------------------------------