Help for this page

Select Code to Download


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