>>>>> "JSD" == Jonathan Scott Duff <[EMAIL PROTECTED]> writes:
JSD> On Tue, Aug 15, 2000 at 12:57:46PM -0700, Nathan Wiger wrote:
>> This is a succinct summary of the basic conclusions thus far:
>>
>> 1. a default filehandle IS needed sometimes, but only
>> for stuff like print
JSD> Well, I think that C<print> should always print to $PERL::STDOUT (or
JSD> whatever we call it) always; same with C<printf()>. I'd hardly call that
JSD> "default" though.
Err, no.
What if you want to print to a default file handle and also to STDOUT?
select(OTHERFH);
print "This goest to OTHERFH\n";
print STDOOUT "This went to STDOUT\n";
STDOUT is _not_ the default filehandle. It is the currently selected
filehandle when perl starts.
<chaim>
--
Chaim Frenkel Nonlinear Knowledge, Inc.
[EMAIL PROTECTED] +1-718-236-0183
- Re: command line option: $|++ Jonathan Scott Duff
- Re: command line option: $|++ Nathan Wiger
- Re: command line option: $|++ Jonathan Scott Duff
- Re: command line option: $|++ Peter Scott
- Re: command line option: $|++ Nathan Wiger
- Re: command line option: $|++ Peter Scott
- Default filehandles(was Re: command line ... Nathan Wiger
- Re: Default filehandles(was Re: command l... Jonathan Scott Duff
- Re: Default filehandles(was Re: command l... James Mastros
- Re: Default filehandles(was Re: command l... Nathan Wiger
- Re: Default filehandles(was Re: command l... Chaim Frenkel
- Re: Default filehandles(was Re: command l... Jonathan Scott Duff
- Re: Default filehandles(was Re: command l... Chaim Frenkel
- Re: Default filehandles(was Re: command l... Nathan Wiger
- Re: Default filehandles(was Re: command l... Chaim Frenkel
- Re: Default filehandles(was Re: command l... Nathan Wiger
- Re: Default filehandles(was Re: command l... Chaim Frenkel
- Re: Default filehandles(was Re: command l... Peter Scott
- pascal-like "with" was Re: Def... David L. Nicol
- Re: pascal-like "with" was Re:... Dave Storrs
- Re: pascal-like "with" was Re:... Johan Vromans
