Help for this page

Select Code to Download


  1. or download this
    print "How much beer do you whant? ";
    my $beer=<STDIN>;chomp($beer);
    $question = (2 * $beer) || (not 2 * $beer);
    print "2 beer || ! 2 beer this is a $question\n";
    
  2. or download this
    my $mymoney=10; $beercost=1;
    while($mymoney>0){
    ...
        print "2 beer || ! 2 beer this is a $question\n";
        $mymoney-=$beercost*$question;    
    }