Help for this page

Select Code to Download


  1. or download this
    print 1<2 ? '1' : '2', $/;
    
  2. or download this
    $ perl -Mstrict -Mwarnings -e '
        for my $item_count (0..2) {
    ...
    0 items.
    1 item.
    2 items.
    
  3. or download this
    my $arrref =  \( if(1<2){'1'}else{()} );
    
  4. or download this
    $arrayref = \(...);
    
  5. or download this
    $arrayref = [...];