Re: $OUTPUT_RECORD_SEPARATOR strikes against LWP

Graham Barr (bodg@tiuk.ti.com)
Fri, 26 Apr 96 17:01:56 BST


Tim Bunce <Tim.Bunce@ig.co.uk> writes:
>> From: Graham Barr <bodg@tiuk.ti.com>
>> 
>> Gisle Aas <aas@bergen.sn.no> writes:
>>
>> >Perhaps every library module should start out with these lines:
>> >
>> >  local($_);
>> >  local($/) = "\n";
>> >  local($#) = "%.20g";
>> >  local($,) = "";
>> >  local($\) = "";
>> >  local($*) = 0;
>> 
>> I intent to add this list to IO::Handle::write :-)
>
>It'll be hard enough getting people to pay the method call overhead
>without this as well.
>
>I'd suggest adding another method for this. Perhaps $fh->write_norm.

That is already there $fh->print :-)

>Anyway, people may have legitimate reasons for playing with those values.

Well I am emulating 'write' (the direct opposite or read),

   $fh->write(BUF, LEN [, OFFSET])

so the only one I really need to set is $\ so that the print does not
add extra chars.

Regards,
Graham.

--
Graham Barr <bodg@tiuk.ti.com>
Texas Instruments Ltd.