Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Getting a funny newline that was not there before

by crashtest (Curate)
on Mar 25, 2010 at 18:46 UTC ( #830933=note: print w/replies, xml ) Need Help??

in reply to Getting a funny newline that was not there before

I was going to guess that you might have windows line-endings in your hostfile2 - which would also give you problems - but I think moritz has probably nailed it with his comment.

Replace the four instances in getNetworkInfo where you globally undef $/ to do so with just local effect:

# undef $/; # global effect! # instead: local $/ = undef; # local effect

It also appears that you're not running under strict or warnings (unless you've snipped that from your post). You really should look into that.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-09-24 22:55 GMT
Find Nodes?
    Voting Booth?
    Eventually, "covfefe" will come to mean:

    Results (195 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!