Help for this page

Select Code to Download


  1. or download this
    perl -MO=Deparse,-d \
      -le \
    ...
    my $coin = int rand 2;
    print $coin ? "heads" : "tails";
    -e syntax OK
    
  2. or download this
    perl -MPerl::Tidy -le '
        my $code = q{my $coin = int(rand(2)); 
    ...
    print $coin ? q{true}
        : 1     ? q{false}
        :         q{};