On Fri, Jun 20, 2008 at 08:04:27AM -0700, Nicholas Clark wrote: > > $ ./perl -Ilib -e 'sub foo {return return}' > $ > > How come this isn't a syntax error? It can't possibly do anything useful. > (Actually, it seems that anything can be passed the return value of return. > C<print return> works just fine). Well, some people think that always using a 'return' makes code easier to understand. Clearly, 'return return' makes it even easier. AbigailThread Previous | Thread Next