ForNext
Only Do What Only You Can Do
096. empty test
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
!@a
PHP
!$a
Python
not a
Ruby
NoMethodError if a is nil: a.empty?
!@a
!$a
not a
NoMethodError if a is nil: a.empty?