in reply to Is My Split Or My Pattern Bad?

Is it possible that split is generating an empty $message that would fall through "Error 4" ?

perl -e ' print "[$_]\n" for ( split /:/ => ":xxx" ) ' [] <== empty $message [xxx]

Replies are listed 'Best First'.
Re^2: Is My Split Or My Pattern Bad?
by tc1364 (Beadle) on Nov 22, 2004 at 18:23 UTC
    Well, the code was changed to "|" and it seems to work. Thank you!