Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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 examining the Monastery: (7)
As of 2020-05-30 19:17 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (173 votes). Check out past polls.