- or download this
perl> %hash = 1 .. 10;;
perl> print "%hash";;
...
perl> print "@{[ %hash ]}";;
1 2 3 4 7 8 9 10 5 6
- or download this
perl> use constant X => 12345;;
perl> print X;;
...
perl> printf "stuff %s other stuff\n", X;;
stuff 12345 other stuff
- or download this
perl> *X = sub{ 12345 };;
perl> *X = \12345;;
...
perl> print "$X";;
12345