Re: Switch use in awstats

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

 



On 08/15/2011 03:04 PM, Iain Arnell wrote:
> 2011/8/15 Marcela Mašláňová <mmaslano@xxxxxxxxxx>:
>> On 08/13/2011 06:07 PM, Emmanuel Seyman wrote:
>>>
>>> Hi, Petr.
>>>
>>> I noticed yesterday that you had patched awstats to use if statements instead
>>> of the switch module. The switch module is now back in Fedora (it was removed
>>> from Perl core in 5.14 and is now a package in its own right) so feel free to
>>> remove your patch, awstats should build fine without it.
>>>
>>> Emmanuel
>>>
>>
>> Hello Emmanuel,
>> I didn't package Switch module on purpose. Switch was removed from perl
>> core, because it had a lot of bug reports. I suppose using if-else is
>> safer.
>> Switch was packaged last week by spot, so maintainers could use it, but
>> they don't have to if they wish.
>>
> 
> Or use Perl's native switch syntax: given/when. See "Switch
> statements" in perlsyn for details.
> 
> 

Um, given/when have almost the same amount of bugs ;-) I'm not saying do
not use new syntax. But as a maintainer of many packages I prefer older
syntax.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux