Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Unknown characters

by umasuresh (Hermit)
on Feb 08, 2011 at 22:21 UTC ( [id://887072]=note: print w/replies, xml ) Need Help??


in reply to Unknown characters

try
 chomp $msg;
before printing!

Replies are listed 'Best First'.
Re^2: Unknown characters
by HyperDevil (Initiate) on Feb 08, 2011 at 22:25 UTC
    I have tried chomp; what happens is when i then try to print the string it is empty.
    When i length($msg); it still gives my a 46 back.
      Did you remember to $|=1? Otherwise the reason you're not seeing any output at all is probably just buffering.
        yes :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-03-28 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found