Bug#512799: perl-base: please incorporate new warning for 'my $var = return myfunc()'

Dominic Hargreaves dom at earth.li
Thu Sep 12 19:04:36 UTC 2013


Control: reopen -1

On Sun, Sep 08, 2013 at 06:56:20PM +0300, Eugene V. Lyubimkin wrote:
> Hi Dominic,
> 
> Thank you for your actions,
> 
> 2013-09-08 16:26, Dominic Hargreaves:
> > I forwarded this bug upstream[1], and the ticket was rejected:
> 
> > > [...] This is the first time in 13
> > > years of using Perl that I've ever heard of someone trying to use
> > > 'return' in the manner cited. Perhaps the documentation in 'perldoc -f
> > > return' could use an example [...]
> 
> I guess upstream misunderstood my wish as I never "tried to use 'return'
> in the manner cited", it was more about stupid editing typo which
> interpreter happily ate quietly.
> 
> Anyway, nothing important, bug closed.

It looks like I spoke too soon, as there is not agreement on the upstream
ticket that this shouldn't be done. Reopening for now.

Dominic.




More information about the Perl-maintainers mailing list