Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Printing a String (TOO stupid?)

by moritz (Cardinal)
on Jun 18, 2014 at 07:49 UTC ( #1090267=note: print w/replies, xml ) Need Help??


in reply to Printing a String (TOO stupid?)

If some strings do fishy things (like overwriting existing output, messing up your console etc.), a good way to debug that is this:

use Data::Dumper; $Data::Dumper::Useqq = 1; print Dumper $yourstring;

This will probably reveal a \r, which is a carriage return, which causes the console to go back to the start of the line, overwriting existing output.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090267]
help
Chatterbox?
[ozboomer]: Howdy, all.. Trying this once more... Not really a perl question :(... but I don't know how to even title my query (more...)
[ozboomer]: There's a text file with lots of sections in it, like an '.ini/.conf' file. Each section can be 'used' or 'unused' by its application (more...)
[ozboomer]: Some folk want to use the text file as 'storage', keeping ALL items in it (a database); others call it an 'active document' that should only contain 'in-use' sections. Is there a 'good practice' for this sort of thing?

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2018-05-21 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?