Thanks for the reply and sorry GrandFa its not the question of use strict, its by mistake commented,though i uncommented that , am unable to make a directory in the path /var/...../temp2, am not getting any errors , but in error log its giving print() on closed filehandle DAT, i find this error becoz its not creating directory