in reply to Re^4: unlink($ful) does not delete
in thread unlink($ful) does not delete

The "-T switch" is Perl's mechanism to make your programs more secure. If the taint switch is on, Perl will refuse to carry out operations which are possibly insecure.

Someone with bad ideas might construct a link to an important file into the URL and then that file would be deleted. All user input is considered unsafe unless you untaint it by running it through a regex (which supposes that at least you have given the danger some thought).

Everything touched by a tainted piece of data gets tainted as well. By switching off the taint switch you have now opened your web application for attacks.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James