Don't put & in-front of subroutines in Perl
Once in a while I see people calling subroutines in perl like this:
&some_sub($param);
That & character at the beginning should not be there.
Instead of repeating the explanation let me just point you to the article by Dave Cross:
The only place where you need to put & in-front of the subroutine name is when you take a refernce to it:
my $ref = \&some_sub;
Published on 2015-04-19
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post