ForNext
Only Do What Only You Can Do
016. constant declaration
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
use constant PI => 3.14;
PHP
define("PI", 3.14);
Python
# uppercase identifiers # constant by convention PI = 3.14
Ruby
# warning if capitalized # identifier is reassigned PI = 3.14