Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Missing \t in print output

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


in reply to Missing \t in print output

SOLVED

Thank you all for the suggestions and advice. I now know how to post properly for potential next posts.

The issue seems to have been the way I was viewing the output, and not a fault in the Perl script itself. I was viewing the output in the terminal (either by printing directly to STDOUT or by calling head on the output file) and somehow that created issues (missing tabs) that were not in the actual output file. I ended up downloading the output file locally and this showed that the file had all the required tabs.

Many thanks, and sorry for the multiple confusions. I really expected the issue to be a Perl one, not a matter of the way I was viewing the output.

Replies are listed 'Best First'.
Re^2: Missing \t in print output
by Anonymous Monk on Jul 15, 2015 at 13:15 UTC

    Glad to hear it, although I do still think it's strange that characters just went missing in the terminal, so I still have a small suspicion that you may have control characters in your strings (they usually don't affect editors as much as they can affect the terminal). Using $Data::Dumper::Useqq=1; or Data::Dump to look at the strings may still be worth it.

      Thanks, I agree that it is strange as the distribution of missing \t seems very random. But I've printed the array using $Data::Dumper::Useqq=1; and there are no odd characters there.

      On the same run, looking at the output through the terminal (head outputFile) resulted in missing tabs, but viewing the file locally in a different text editor didn't.

Log In?
Username:
Password:

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

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

    No recent polls found