Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Printing a String (TOO stupid?)

by moritz (Cardinal)
on Jun 18, 2014 at 07:49 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1090267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-23 07:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found