in reply to How to create a "CONSTANT"
use strict; use vars qw($PIE); $PIE = 'Pumpkin'; print "pie: $PIE\n"; [download]
You're talking about global variables, not constants.
He's talking about old-school constants... (you know... the way we used to do it... back in the paradise garage...)
$ perl -le '*PIE=\"Apple"; $PIE = "foo"' Modification of a read-only value attempted at -e line 1. [download]
Please excuse my Doc Martin impression.
-sauoq "My two cents aren't worth a dime.";