Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a built in function in the module 1

Status
Not open for further replies.

concino

Programmer
Jan 18, 2004
7
US
i'm trying to learn object oriented approach; when i tried to use ceil function in on of my subroutines it gives me undef function error.

i've a .pm file where i have all my subroutines that belong to a class. in one of these subroutines i tried to use ceil function where i've gotten the error.

so is there anyone out there who knows how to deal with it?

thank you.
 
ceil() isn't a built-in Perl function. It's part of the POSIX module. Make sure your .pm file has 'use POSIX;' somewhere near the top and refer to the function as POSIX::ceil(n)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top