home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!spool.mu.edu!darwin.sura.net!wupost!usc!news!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.lang.perl
- Subject: Re: reopening STDOUT as another stream
- Message-ID: <1992Sep5.071243.8404@netlabs.com>
- Date: 5 Sep 92 07:12:43 GMT
- References: <lafrc7INN84@jethro.Corp.Sun.COM>
- Sender: news@netlabs.com
- Organization: NetLabs, Inc.
- Lines: 11
- Nntp-Posting-Host: scalpel.netlabs.com
-
- In article <lafrc7INN84@jethro.Corp.Sun.COM> tmhoff@oogoody.Corp.Sun.COM writes:
- :
- : I can't quite figure out how to freopen STDOUT as another
- : stream. Any suggestions?
-
- If you aren't running an ancient version, ordinary open should work
- fine for that:
-
- open(STDOUT, "| lpr")
-
- Larry
-