ForNext
Only Do What Only You Can Do
180. chomp
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
chomp $line;
PHP
chop($line);
Python
line = line.rstrip('\r\n')
Ruby
line.chomp!
chomp $line;
chop($line);
line = line.rstrip('\r\n')
line.chomp!