in reply to If/Else statement in subroutine. How do i place it?

You can also use the ternary operator for simple evaluations such as these:
sub decide() { $answer =~ m/^y/i ? yes() : not(); }

Originally posted as a Categorized Answer.