Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2018-07-19 23:30 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (421 votes). Check out past polls.