Re: Trying to use Floor

2007-11-18 Thread John W . Krahn
On Sunday 18 November 2007 17:12, Chas. Owens wrote: > > On Nov 18, 2007 7:32 PM, Thomas F. Droege <[EMAIL PROTECTED]> wrote: > > > 1) I suspect a version problem since search indicates floor added > > after 5.0 > > How do I ask perl what version is installed? > > Not an version problem, they just

Re: Trying to use Floor

2007-11-18 Thread Chas. Owens
On Nov 18, 2007 7:32 PM, Thomas F. Droege <[EMAIL PROTECTED]> wrote: > Trying to use floor: snip The ceil and floor functions are defined in the POSIX module. Read "perldoc -q floor" for more info. #!/usr/bin/perl use strict; use warnings; #don't use -w if you are g

Trying to use Floor

2007-11-18 Thread Thomas F. Droege
Trying to use floor: [EMAIL PROTECTED] test]$ /home/tom/mk4/perl/test_floor.pl enter a number to be floored 3.557 Undefined subroutine &main::floor called at /home/tom/mk4/perl/test_floor.pl line 8, <> line 1. [EMAIL PROTECTED] test]$ Here is the code: #!/usr/bin/perl -w use s