[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [FWP] Cool hack of the week



> From: Mark-Jason Dominus [mailto:mjd@plover.com]
> Sent: Sunday, June 27, 1999 23:20
> To: Michael Budash
> Cc: fwp@technofile.org
> Subject: Re: [FWP] Cool hack of the week 
...
> It only works on the currently-selected filehandle.  So you have to
> use select to select the filehandle for which you want to set
> autoflushing, and then you have to use select to set it back again,
> and you have to store the old selected filehandle in an otherwise
> useless variable in between.  All of which turns what should be a
> simple operation into a four or five-line locution.

...

>           { my $o = select FH; $|++; select $o }

Try as I may, I fail to find a four- or five-line locution there!  Talk
about mountains and molehills...

-- 
Larry Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com 

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org