I’ve just found a number of subroutines defined this way in the code that I’m working on.
1 2 3 4 |
sub do_something () { my $parameter = shift; ... } |
I discovered the problem because I started getting errors about “too many parameters”. I knew what the problem was (the empty prototype) but it took a couple of minutes of head-scratching before I realised why it had… Continue reading What is Wrong With this Picture?