Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Missing \t in print output

by Sophienz (Acolyte)
on Jul 14, 2015 at 15:11 UTC ( [id://1134753]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1134753]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-16 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found