in reply to Returning the value generated in package/module problem

You've got use Price_calc twice. Probably don't want the first one.

You're not capturing the return value of Price_calc::get_ama($amastringsent);.

The last line of your package Price_calc; should be 1; (actually, it can be any true value but most people just use a one).

-- Ken

Replies are listed 'Best First'.
Re^2: Returning the value generated in package/module problem
by Monkomatic (Sexton) on Oct 12, 2010 at 11:58 UTC

    Thank you kcott and Anonymous Monk.

    Those are helpfull tips. I DId try

    1 pricecalc

    and

    $amastringsentback9=Price_calc::get_ama($amastringsent);

    $amastringsentback9 comes up with an empty string however code in Price_calc works fine;

    ( I forget to include the 1; in the post but it is is in there)