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:
        this
        is
        a
        test
        ''
        ''

Is there any way around this? I need to split strings on a specific delimiter and detect all null fields within the string, including trailing ones.

        Thanks in advance!
        dZ.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to