Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Undefined Subroutine

by japhy (Canon)
on May 19, 2006 at 22:51 UTC ( [id://550609]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://550609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found