in reply to Passing Sub Values

Usually, one uses the argument list to pass information into a subroutine. Also, it would seem that you're throwing out the return values from each of your two subs.

Also, I (at least) find your code formatting to be, ahem, confusing, but that's an aesthetic, not technical, judgment.


emc

Information about American English usage here and here. Floating point issues? Please read this before posting.

Replies are listed 'Best First'.
Re^2: Passing Sub Values
by Anonymous Monk on Mar 21, 2008 at 16:54 UTC
    Well, can you show how you would solve this?

      lidden already did that. My suggestion would be similar in concept if not in details, so it would be redundant.

      For code formatting, I'm lazy and use the cperl mode in emacs. My advice is if you don't have emacs, get either GNU emacs, here or its near-sibling, Xemacs, here.


      emc

      Information about American English usage here and here. Floating point issues? Please read this before posting.