Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Trailing Whitespace

Name: Anonymous 2012-04-05 7:07

Hey everyone,

A few months ago, I posted my Python script to remove trailing whitespace from a file. Somebody responded with a Perl 1-line code that does the same thing.

I could really use that Perl code now, anybody? Thanks.

Name: Anonymous 2012-04-05 8:06

>>6


>>> a = "lol  \n  \n\nlol"
>>> a.rstrip()
'lol  \n  \n\nlol'


The trailing spaces seem to be there.

>>5
How can I use that, do I pass an argument or something? Thanks.

Name: Anonymous 2012-04-05 8:14

>>8
I assumed trailing at the end of the file.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List