sub foo { retrun shift->{age} == shift; } #### sub foo { return 1 if shift->{some_obj}->some_method; return; }