http://qs321.pair.com?node_id=1134753


in reply to Missing \t in print output

Thanks all for your suggestions, I've checked the array and it looks fine, unfortunately. I've also tried the following suggestion, but that didn't help either.
$" = "\t"; $normal_fh->printflush("@arrayToPrint\n");

Replies are listed 'Best First'.
Re^2: Missing \t in print output
by ww (Archbishop) on Jul 14, 2015 at 18:33 UTC

    If one of your (presumed) tabs in the original data is actually a space, your regex will fail. Likewise, if the offending element is two tabs... KA-BOOM! So, as advised in the consideration, you should add code tags around your sample data (for our ease of helping) and use any one of a host of tools to doublecheck the separators.

Re^2: Missing \t in print output
by Anonymous Monk on Jul 14, 2015 at 16:10 UTC
    I've checked the array and it looks fine

    Can you show us the output of the print Dumper?

      I cannot reproduce the issue on a short scale, it only happens when the array has a large number of elements.