opendir(DIR, "/Volumes/mickey/Library/WebServer/mbl.org/prombl/Web/FMP_library/sections/005") or die "cannot open directory: $!\n";

while($f=readdir(DIR)){
	if($f ne "." & $f ne ".." & $f ne ".DS_Store"){
	    if($f =~ /jpg/){
	    }else{
	        $nf = $f.".jpg";
	        $n = rename "/Volumes/mickey/Library/WebServer/mbl.org/prombl/Web/FMP_library/sections/005/$f", "/Volumes/mickey/Library/WebServer/mbl.org/prombl/Web/FMP_library/sections/005/$nf";
	    }
	}
}

