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

but this morning I must have touched something by mistake

This is a good time to start looking in your version control system what changes you did this morning.

You don't have one? It's high time to start using one. It's quite easy, and really worth the (small) effort you have to put into it initially.

Anyway, I suspect that problem is that you undef $/ globally, so chomp($server) does not do what you expect it to.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: Getting a funny newline that was not there before
by MikeDexter (Sexton) on Mar 25, 2010 at 18:51 UTC

    Thank you. So should I change the code to local $/ = undef;

      And get a version control system, and actually use it. That's much more important in the long run. See for example this introduction for a free version control system with little installation effort.
      Perl 6 - links to (nearly) everything that is Perl 6.

        Thank you. That worked like a charm. I will look into the version control too