Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Missing \t in print output

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

in reply to Missing \t in print output


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?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2021-01-17 00:42 GMT
Find Nodes?
    Voting Booth?