in reply to Re: Re: My coding guidelines
in thread My coding guidelines
Personally I never pass arrays to subs just array references or hashes. This save you from adding extra shifts or assigning extra variables when you add a value to be be passed in. So you don't have to my $x=$_[0]; my $y=shift;.
The same goes for returning values from subs, returning a list just causes hassle of typing out assignments for each value in the list.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: My coding guidelines
by hakkr (Chaplain) on Nov 26, 2002 at 10:09 UTC | |
Re: Re: Re: Re: My coding guidelines
by sauoq (Abbot) on Dec 01, 2002 at 05:36 UTC |
In Section
Meditations