opendir(DIR,"/u/rminer/tmp");
foreach $file (readdir(DIR)) {
print "$file \n";
}
close(DIR);
chdir "/u/rminer/tmp";
mkdir("test", 0755);
rename("test","gunk");
.
. # write stuff to gunk
.
opendir(DIR,"gunk");
foreach $file (readdir(DIR)) {
unlink("gunk/$file");
print "deleted $file \n";
}
closedir(DIR);
chdir("/u/rminer/tmp");
(-e "dog") || print "no dog exists \n";
(-r "cat") || print "can't write to cat \n";
(-d "rat") || print "rat is NOT a directory \n";
convert
program, or start Maple. This is done with the system
command, which passes a string along to the underlying system.
system("ps | grep rminer");
$file1 = "test.ps";
$file2 = "test.gif";
system("convert $file1 $file2");
The Geometry Center Home Page
Comments to:
webmaster@geom.umn.edu
Created: May 29 1996 ---
Last modified: May 29 1996