in reply to returning values from a sub
If you're just going to stick things in another hash when you get it back it makes much more sense to return a list of the three values (or even two, the name and an arrayref).
Of course in this particular case the more sensible thing would to be to use getservbyname rather than rolling your own and possibly encountering problems on hosts which are using NIS/YP . . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: returning values from a sub
by tcf03 (Deacon) on Jan 06, 2005 at 19:40 UTC | |
|
Re^2: returning values from a sub
by tcf03 (Deacon) on Jan 06, 2005 at 19:28 UTC | |
by Eimi Metamorphoumai (Deacon) on Jan 06, 2005 at 19:31 UTC |