chop('ABCD') -> 'ABC'
The String Operators
용도는 다음에 잘 설명되어 있다.
When a file is read using the diamond operator, the newline character that ends the line is kept as part of the input string. Frequently ,you'll see the chop() function used to remove the newline. For instance, chop($inputLine =
출처 : http://affy.blogspot.kr/p5be/ch09.htm
No comments:
Post a Comment