So, in the second case it is optional and in the first case it is not optional.
Resource: man perlsub
In reply to Re: function calling by nagalenoj in thread function calling by vinoth.ree