Welcome to the Monastery | |
PerlMonks |
Unwanted empty value in array after Splitting a stringby monkfan (Curate) |
on Aug 28, 2006 at 02:22 UTC ( [id://569916]=perlquestion: print w/replies, xml ) | Need Help?? |
monkfan has asked for the wisdom of the Perl Monks concerning the following question:
Dear Fellow monks, I wanted to extract the N segment of a string, and I uses split for that. But why my script below results in the unwanted empty value ('') in the final array (see the Dumper output below).
Regards, Edward
Back to
Seekers of Perl Wisdom
|
|