Re: split() skipping trailing delimiters

2005-12-05 Thread DZ-Jay
Joe Discenza wrote: DZ-Jay wrote, on Mon 05-Dec-05 07:58 : I have a problem using the split() function: When there are trailing : delimiters, without any content between them, split() skips them. For From "perldoc -f split": If LIMIT is specified and positive, splits int

Re: split() skipping trailing delimiters

2005-12-05 Thread James Sluka
DZ-Jay wrote: Hello: I have a problem using the split() function: When there are trailing delimiters, without any content between them, split() skips them. For example, this: my @foo = split(/,/, 'this,is,a,test,,'); yields: this is a test while I'm expecting:

RE: split() skipping trailing delimiters

2005-12-05 Thread Joe Discenza
Title: split() skipping trailing delimiters DZ-Jay wrote, on Mon 05-Dec-05 07:58 :     I have a problem using the split() function:  When there are trailing: delimiters, without any content between them, split() skips them.  For From "perldoc -f split":       If LIMIT is spe

Re: split() skipping trailing delimiters

2005-12-05 Thread Chris Wagner
At 07:58 AM 12/5/2005 -0500, DZ-Jay wrote: >Hello: > I have a problem using the split() function: When there are trailing >delimiters, without any content between them, split() skips them. For >example, this: > > my @foo = split(/,/, 'this,is,a,test,,'); my @foo = split(/,/, 'this,