Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by bart (Canon)
on Dec 08, 2003 at 21:36 UTC ( [id://313250]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://313250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-26 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found