in reply to problem in mkdir
mkdir ("/var/www/html/piRNA_html/UNAFold/output/$temp2/$temp1",0775) o +r print "in mkdir:$!"; [download]
And maybe, you had better put your question not in "PerlMonks Discussion" but "Questions"...