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.
In reply to Re: Undefined Subroutine
by japhy
in thread Undefined Subroutine
by clearsky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |