Next Program Repair Shop 203

Empty if or else blocks

        Subject: Lame coding question
        Message-Id: <NbPo2.3$_o.306113@news0.optus.net.au>

        $choice = <STDIN>;
        chomp $choice;
        if ($choice eq "Y") {
                &mailatt;
        }
        if ($choice eq "y") {
                &mailatt;
        }
        if ($choice eq "yes") {
                &mailatt;
        }
        if ($choice eq "YES") {
                &mailatt;
        }
        if ($choice eq "N") {
        }
        if ($choice eq "n") {
        }
        if ($choice eq "no") {
        }
        if ($choice eq "NO") {
        }




Next Copyright © 2002 M. J. Dominus