Ahh! The lights come on! (Then they go dim again) I changed the
$fname =~ s/^\s+(.+?)\W*$/$1/;
$fname =~ s/^\s*(.+?)\W*$/$1/;
and the problem went away. (Of course it did. I should have seen that.) I can see why with the '+' it didn't work right, but why would the failure manifest as a CR at the end of $fname?
But I am perplexed about the split itself. I replaced the (",")
and got the error:
Unrecognized escape \s passed through at phonelist.pl line 28.
The paren/quote format worked fine with just a comma but broke with the addition of the space char class. Did I just get lucky the first way?
As to the LIMIT option, my Llama book doesn't explain it. Does the 2 relate the expectation of having two char within the match?
(so many nodes and so little time ... )