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

2013-09-12 Thread Dominic Hargreaves
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 > > > yea

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

2013-09-08 Thread Dominic Hargreaves
On Fri, Jan 23, 2009 at 11:11:13PM +0200, Eugene V. Lyubimkin wrote: > Package: perl-base > Version: 5.10.0-19 > Severity: wishlist > > > Hello, I spent significant amount of time today in debug to notice stupid line > like > > 'my $var = return myfunc($arg1, $arg2);', > > when of course I mean

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

2009-01-23 Thread Eugene V. Lyubimkin
Package: perl-base Version: 5.10.0-19 Severity: wishlist Hello, I spent significant amount of time today in debug to notice stupid line like 'my $var = return myfunc($arg1, $arg2);', when of course I meant 'my $var = myfunc($arg1, $arg2);'. As assigning something a return is useless, Perl cou