Re: $OUTPUT_RECORD_SEPARATOR strikes against LWP
Gisle Aas (aas@bergen.sn.no)
Fri, 26 Apr 1996 11:26:06 +0200
In message <199604251754.TAA02572@anna.in-berlin.de>, Andreas Koenig writes:
> there must be still a place in libwww, where you print without setting
> $\ locally to "".
The same problem applies to $, $# and $" I guess.
Perhaps we should start to use syswrite() instead of print in
libraries :-)
There are also places in libwww-perl where I do:
while (<FILE>) { ... }
without setting $/ locally to "\n".
I guess we also have worry about somebody setting $* to 1?
Perhaps every library module should start out with these lines:
local($_);
local($/) = "\n";
local($#) = "%.20g";
local($,) = "";
local($\) = "";
local($*) = 0;
or perhaps we can get perl to treat all these special variables like
it treats $[?
I was surprised about this behaviour: perl -le '$# = 666; print 42'
Regards,
Gisle