in reply to Undefined Subroutine

Um, the total() function is undefined. You never defined it. You have to define a function to use it, or else include some file in your program that defines it.

Perl has no built-in total() function (and even if it did, calling a function with a '&' in front of it forces Perl to look for a user-defined function).

You have to write the function.


Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^2: Undefined Subroutine
by clearsky (Initiate) on May 19, 2006 at 23:46 UTC
    Thank you, Jeff.