Tag: prototypes

  • What is Wrong With this Picture?

    I’ve just found a number of subroutines defined this way in the code that I’m working on. 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…