RE: Spam:RE: Return values from methods on Classes/Objects

2004-11-29 Thread Michael Kraus
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 {

RE: Return values from methods on Classes/Objects

2004-11-29 Thread Charles K. Clarkson
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

Return values from methods on Classes/Objects

2004-11-28 Thread Michael Kraus
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