Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: It's all getting messy - remove whitespaceby tinita (Parson) |
on Jun 15, 2014 at 10:50 UTC ( [id://1089933]=note: print w/replies, xml ) | Need Help?? |
Whenever you don't know what's in your data (you think it contains whitespaces) print it to make sure.
Then read about array interpolation in perldata: Arrays and slices are interpolated into double-quoted strings by joining the elements with the delimiter specified in the $" variable The problem is in this line: print MYFILE (">" . "$col_ID[$i]" , "@spliceout" , "\n");
In Section
Seekers of Perl Wisdom
|
|