Wednesday, 21 August 2013

Difference between unless () return ... ,and return ... unless()

Difference between unless () return ... ,and return ... unless()

In Perl, is there any meaningful difference between:
return $result unless ($exist_condition);
and
unless ($exist_condition) return $result;

No comments:

Post a Comment