in reply to Special cases make special community
If split is used in a scalar (or void) context, fields go into @_ (clobbering your sub arguments, if you have any)
... thus you can get the number of fields in a scalar and have the fields in @_ at once.
In Section
Meditations