|
|
Choosing A Webhost: |
Re: [PATCH] VCP::Logger and STDOUT.: msg#00022version-control.revml
On Wed, Sep 08, 2004 at 10:38:43AM -0400, Barrie Slaymaker wrote: > I'm hesitant to require only the very latest Perl, so I'm not sure what > to do. Ideas? This turns out to be wrong. However just using a ref instead of raw glob to hold the handle makes pperl happy --- lib/VCP/Logger.pm (revision 1069) +++ lib/VCP/Logger.pm (local) @@ -344,9 +344,9 @@ BEGIN { ## Flush the LOG every print() so that we never miss data and ## so that we can pass the log to child processes to emit STDOUT ## and STDERR to. - *OLDFH = select LOG; + my $old = select LOG; $| = 1; - select OLDFH; + select $old; ## Print a header line guaranteed to start at the beginning of a ## line. Cheers, CLK
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [PATCH] VCP::Logger and STDOUT., Barrie Slaymaker |
|---|---|
| Next by Date: | Re: [PATCH] VCP::Logger and STDOUT., Barrie Slaymaker |
| Previous by Thread: | Re: [PATCH] VCP::Logger and STDOUT., Barrie Slaymaker |
| Next by Thread: | Re: [PATCH] VCP::Logger and STDOUT., Barrie Slaymaker |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |