Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Getting a funny newline that was not there before

by moritz (Cardinal)
on Mar 25, 2010 at 18:33 UTC ( [id://830930]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found