in reply to Re: Re: Re: How to get the number of fields found by split without a warning?
in thread How to get the number of fields found by split without a warning?

Except that it won't drop trailing blank fields, as it should. If you don't care about this, you needn't use split.
print $_ = () = split ',','a,b,c,,,,',-1
7
  • Comment on Re: Re: Re: Re: How to get the number of fields found by split without a warning?
  • Download Code