in reply to Re^2: Passing three arrays to a subroutine
in thread Passing three arrays to a subroutine

Well you have to read in values into the sub somehow, unless you use global variables. How else would he do it?

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re^3: Passing three arrays to a subroutine

Replies are listed 'Best First'.
Re^4: Passing three arrays to a subroutine
by ikegami (Patriarch) on Nov 09, 2010 at 19:39 UTC
    You missed the point. The problem isn't that you accept five arguments; the problem is that you use a prototype that says "accept zero arguments". There's also the matter that you use a prototype after saying there's no reason to use prototypes here.
        I agree with him. Get rid of the parens. They're a bug. You even get a warning from them.