in reply to Re: Question perlcritic ProhibitExplicitReturnUndef
in thread Question perlcritic ProhibitExplicitReturnUndef

There is no problem with turning this warning off - that is easily achieved. I was less complaining about the warning and more the explanation. I was slightly concerned that the critic explanatory text makes it sound like if you use "return undef" you should stop and replace it with a straight return without pointing out that you could easily break your code if you use the function in list context.

  • Comment on Re^2: Question perlcritic ProhibitExplicitReturnUndef