Bug#484021: perl: evaluation of errno ($!) violates priniciple of DWIM

2011-05-25 Thread Dominic Hargreaves
On Mon, Jun 02, 2008 at 01:29:15AM +0100, Stephen Gran wrote: This one time, at band camp, Brendan O'Dea said: On Mon, Jun 2, 2008 at 8:20 AM, Stephen Gran sg...@debian.org wrote: perl should clear errno before going into a function where the API depends on checking it afterwards. Yes, I

Bug#484021: perl: evaluation of errno ($!) violates priniciple of DWIM

2008-06-01 Thread Stephen Gran
Package: perl Version: 5.10.0-10 Severity: normal Hi there, Quoted from perlvar: Changes to $) require a check to $! to detect any possible errors after an attempted change. Code: #!/usr/bin/perl use POSIX; $! = ENOSPC;

Bug#484021: perl: evaluation of errno ($!) violates priniciple of DWIM

2008-06-01 Thread Brendan O'Dea
On Mon, Jun 2, 2008 at 8:20 AM, Stephen Gran [EMAIL PROTECTED] wrote: perl should clear errno before going into a function where the API depends on checking it afterwards. Yes, I am aware there are other ways to determine that the setegid call failed. The problem is that the documentation

Bug#484021: perl: evaluation of errno ($!) violates priniciple of DWIM

2008-06-01 Thread Stephen Gran
This one time, at band camp, Brendan O'Dea said: On Mon, Jun 2, 2008 at 8:20 AM, Stephen Gran [EMAIL PROTECTED] wrote: perl should clear errno before going into a function where the API depends on checking it afterwards. Yes, I am aware there are other ways to determine that the setegid