Help for this page

Select Code to Download


  1. or download this
    if    ($punter eq 'coffee') { $drink = 'non alky';    }
    elsif ($punter eq 'beer'  ) { $drink = 'alky';        }
    elsif ($punter eq 'whisky') { $drink = 'proper alky'; }
    else                        { $drink = 'unknown';     }
    
  2. or download this
    my %lookup = (
       'coffee' => 'non alky',
    ...
    } else {
       $drink = 'unknown';
    }