in reply to Preventing unintended list expansion inside hash literals.
Yep, you should change return; to return undef;. It is a very bad idea to use return; in a sub that otherwise only ever returns a single scalar.
- tye
|
---|
In Section
Seekers of Perl Wisdom