#!/usr/local/bin/ruby class Numeric def secs_to_minutes self / 60 end def minutes_to_hours self / 60 end end puts 86400.secs_to_minutes.minutes_to_hours
Usually what's meant by "pure OO" (which is what I presume the OP meant by "native") is that everything is an object. In Perl (and Java, and C++) there are underlying primitive data types which aren't first class objects in their own right (granted Ruby cheats with small integers under the hood :).
Update: Tidied up wording
--
We're looking for people in ATL
In reply to Re^2: Perl fan being tempted with Python
by Fletch
in thread Perl fan being tempted with Python
by jeyroz
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |