Next Program Repair Shop 48

Diagnostics

        sub CreateOutputDir {
            my $dir = shift;
            print "Creating DIR: $dir\n";  
            if (mkdir $dir, 0777) {
                print "Success! \n";
            } else {
                print "Fail! : $! \n";
            }
        }
        sub CreateOutputDir {
            my $dir = shift;
            mkdir $dir, 0777 
              or die "Couldn't make dir $dir: $!";
        }


Next Copyright © 2002 M. J. Dominus