Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Getting a funny newline that was not there before

by crashtest (Curate)
on Mar 25, 2010 at 18:46 UTC ( [id://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?
Username:
Password:

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

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

    No recent polls found