in reply to How to differentiate an empty array from an unitialized one?
See split. You can give an extra argument called LIMIT:
From perldoc -f split:my @array = split m/,/ , $_, -1;
If LIMIT is negative, it is treated as if it were instead arbitrarily large; as many fields as possible are produced.
In Section
Seekers of Perl Wisdom