Lets say I want to do this:
How far could this be condensed?sub test{ my $result = $object->createNewObject(); if($result){ push @results, $result; return $result; }else{ return undef; } }
Cheers
Sam
In reply to Condensing code...golfing with push and return by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |