Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: I cannot believe I'm asking a question about split

by eyepopslikeamosquito (Chancellor)
on Aug 08, 2012 at 22:15 UTC ( #986374=note: print w/ replies, xml ) Need Help??


in reply to I cannot believe I'm asking a question about split

By default, split preserves leading empty fields but strips trailing empty fields. You can change that behavior, and preserve trailing empty fields, by using -1 as the last parameter, like so:

@col = split(",",$a,-1);
See also: FMTYEWTK about split //


Comment on Re: I cannot believe I'm asking a question about split
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (15)
As of 2015-07-31 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls