in reply to Re: Accessing Subroutine Arguments
in thread Accessing Subroutine Arguments

Just wondering, do you use named params when a sub takes, say, only two params?

Replies are listed 'Best First'.
Re: Re: Re: Accessing Subroutine Arguments
by perrin (Chancellor) on Apr 04, 2002 at 16:06 UTC
    If a sub takes only two params, and is not part of the public interface, it's a judgement call based on the likelihood of that sub growing in the future. If it's part of the public interface, I would used named params even if there was only a single one. It's insurance against changing a bunch of other classes later on.