G'day!
> : Clearly, I'm missing something crucial here... :)
>
> And so are we. Like the code for the method for
> format_cost(), but I imagine that you are not shifting the
> object off at the beginning of that subroutine.
Right you are... :)
Btw... The code was:
sub format_cost {
Michael Kraus <[EMAIL PROTECTED]> wrote:
: One of my classes has a method called format_cost which takes a
: number (integer representing a monetory amount in cents) and
: pretties it up for
: display as a dollar amount. I.e. format_cost(12) returns
: "$1,200.00".
:
: When I have the functio
G'day...
One of my classes has a method called format_cost which takes a number
(integer representing a monetory amount in cents) and pretties it up for
display as a dollar amount. I.e. format_cost(12) returns
"$1,200.00".
When I have the function stand-alone it behaves as it should, however