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

I think you are looking for perlstyle. The above, formatted in the usual Perl style would look like this:
sub decide{ if ($answer =~ /^[Yy]/ ) { yes(); } else { not(); } }

Originally posted as a Categorized Answer.