in reply to how to chop last character from a string

Of course, if you wanted to be lazy you could do a chomp then a chop, since chomp only grabs whitespace you will take off a \n if it is there but not break if it isn't... it is very strange that you have a \n in the argument, though.

                - Ant
                - Some of my best work - (1 2 3)

  • Comment on Re: how to chop last character from a string