perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] last call for $filter->read
Date Wed, 02 Jun 2004 17:55:46 GMT
Geoffrey Young wrote:
>>Or may be we should keep it as is and just fix the error handling.
>>
>>    while ($filter->read(my $buffer, $wanted)) {
>>        $filter->print($buffer);
>>    }
>>
>>is still easier to write... and if you forget the defined() part you may
>>get errors when you get "0" as a returned string (which luckily one of
>>the tests has happened to do).
> 
> 
> yeah, needing to check for defined really kinda breaks the perl idiom that
> we're trying to maintain here, so if there is a way around that it would
> most certainly be a better interface.
> 
> <handwaving\>

Thanks for the comments, Geoff. My latest idea is not to change it ;)

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message