You could do
sub test { return ($results[ @results ] = $object->createNewObject() ) || pop @results; }
which I think is syntactically equivalent to your original. Whether you would want to is another matter :)
In reply to Re: Condensing code...golfing with push and return
by BrowserUk
in thread Condensing code...golfing with push and return
by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |