tart has asked for the wisdom of the Perl Monks concerning the following question:
Rather than using number of variables we can use hash key and value to do the same. When passing variables to subroutine is required using hash and hash reference makes scripts more cleaner. I am bit curious to know if there are any other benefits I would get if I use hash key and value rather than using single variables.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Benifits of using hash rather than number of variables?
by davido (Cardinal) on Jul 20, 2011 at 02:28 UTC | |
|
Re: Benifits of using hash rather than number of variables?
by DrHyde (Prior) on Jul 20, 2011 at 10:11 UTC | |
by duelafn (Parson) on Jul 20, 2011 at 14:45 UTC | |
by JavaFan (Canon) on Jul 21, 2011 at 13:39 UTC | |
by duelafn (Parson) on Jul 21, 2011 at 14:33 UTC | |
by JavaFan (Canon) on Jul 21, 2011 at 14:59 UTC | |
| |
by Anonymous Monk on Jul 21, 2011 at 16:51 UTC | |
|
Re: Benifits of using hash rather than number of variables?
by TomDLux (Vicar) on Jul 20, 2011 at 16:46 UTC |