Perl strip newline. Site maintained by Jon Allen JJ.

The chomp function removes the input record separator from the end of a string.

There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity.
/78322246-56a701515f9b58b7d0e5f5e6.jpg)
Don't miss the Perl Weekly newsletter!

I tried your test and yes, it works.

Log In?

Or the pattern is just not going to work the way I want it to, because it's wrong.

E-mail required.

Michael Li A blog about the Perl programming language.
