Help for this page

Select Code to Download


  1. or download this
        $ perl -e 'print [qw/1 2/]'
        ARRAY(0x97116c)
    
  2. or download this
        my %foo =
        (
    ...
                blue => 'moon'
            }
         );
    
  3. or download this
        $ perl -e '$h={a=>2,b=>3,c=>4};print %$h'
        a2b3c4
    ...
     
        $ perl -e '%h=(a=>2,b=>3,c=>4);@a=%h;print@a'
        a2b3c4
    
  4. or download this
        $ perl -e '@a=(1,2); $foo=\@a; push@a,\@a;print $foo, $/, $a[-1]'
        ARRAY(0x980028)
        ARRAY(0x980028)