in reply to Re^2: Best practices for passing in function arguments?
in thread Best practices for passing in function arguments?

Will the subroutine ever be expected to perform its task on a list of hashes? Then an array would make sense. Otherwise it seems a needless complication. Which is repeating what I said before. It's your subroutine; YOU figure out how you want to use it.

Dum Spiro Spero
  • Comment on Re^3: Best practices for passing in function arguments?

Replies are listed 'Best First'.
Re^4: Best practices for passing in function arguments?
by andrewkl (Novice) on Dec 09, 2015 at 21:29 UTC
    Hi,
    The processing of the list of hashes is handled in bar(), not foo().
    I think scenario 2 is makes more sense, but just wanted to see what others think.
    Thanks
    --Andrew