[sheepdog] [PATCH 1/6] vditest: use if/else instead of switch/case
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Mon Feb 4 08:29:43 CET 2013
At Mon, 04 Feb 2013 14:52:36 +0800,
Liu Yuan wrote:
>
> On 02/04/2013 02:38 PM, MORITA Kazutaka wrote:
> > switch/case syntax is not familiar to perl programmers.
>
> But switch/case looks cleaner, no? Why bother switching it 'if/else'?
Switch.pm is deprecated and not included in newer perl core modules.
The best way looks like using the given/when statement which is
built-in since 5.10. I'll send v2.
Thanks,
Kazutaka
More information about the sheepdog
mailing list