in reply to if (defined @arr) problem
That's because the array contains one value : 'undef' .
Look at what happens if you do :
Look at what happens if you do :
You can also print scalar @a to see the what's the length of the array .sub test { return () ; }
In Section
Seekers of Perl Wisdom