The stupid question is the question not asked | |
PerlMonks |
split() behavior SOLVEDby gman (Friar) |
on Jan 20, 2011 at 04:02 UTC ( [id://883236]=perlquestion: print w/replies, xml ) | Need Help?? |
gman has asked for the wisdom of the Perl Monks concerning the following question: Hello all, I have a simple question regarding the behavior of split. Given a string following the pattern /w{2}.{4}/ I am getting an extra variable from split. I'm sure this is the correct behavior, I'm just not understanding why so can't correct it. see code:
Output:
Thanks in advance! Thank You for the quick solution and explanation!
Back to
Seekers of Perl Wisdom
|
|