in reply to return ref is better ?
I didn't check the Perl Best Practices book, but I would suspect that it says nothing about that. Because depending on the situation one or the other might be better.
Usually a ref is better for really big arrays or hashes or when you want to get a specific array or hash and not a copy. In most other cases the regular array/hash is just fine as it allows for simpler syntax
|
|---|