# New Ticket Created by KES # Please include the string: [perl #133781] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=133781 > Hi. >Note that splitting an EXPR that evaluates to the empty string always produces zero fields, regardless of the LIMIT specified. Please clarify what 'zero fields' mean. Is this empty string or undefined value? print map{ defined? "YES" :"NO"} split('b', "bd"); # YESYES print map{ defined? "YES" :"NO"} split('b', "b"); # NOTHING IS PRINTED print map{ defined? "YES" :"NO"} split('b', ""); # NOTHING IS PRINTED would it be better to say: >Note that splitting an EXPR that evaluates to the empty string does not produce fields at all, regardless of the LIMIT specified.Thread Previous | Thread Next