in reply to Creating new folders

Building on what plobsing said, I'd suggest
use File::Path 'mkpath'; CreateIfNotPresent( "e:/web/public_html/eagle_f91/ffinfo/protected/ima +ges/$Game" ); CreateIfNotPresent( "e:/web/public_html/eagle_f91/ffinfo/protected/ima +ges/$Game/$SubSet" ); CreateIfNotPresent( "e:/web/public_html/eagle_f91/ffinfo/protected/ima +ges/$Game/$SubSet/thmb" ); sub CreateIfNotPresent { my ( $dir ) = @_; unless (-d $dir) { mkpath($dir) or die "Could not mkpath '$dir': $!\n" } }