定数を定義する

back
constant プラグマを使う

use constant APACHE_DIR => "/usr/local/apache";
use constant OPENSSL_DIR => "/usr/local/ssl";

print APACHE_DIR, "\n";    # <- /usr/local/apache と出力

back