No - that works fine for me if "f" was the name of the file. The name of the file is passed to the script from the browser:www.mydomain.com/..../ dfil?f=abcde
In the script I then pick up the name of the file with
$thef=param('f');
when I print $thef everything appears the same abcde as if I had written $thef="abcde";
printing $ful gives the path exactly as it should be - it can even be recognised by -e $ful but it is not recognised by unlink($ful)
So although they appear identical strings unlink recognises it when $thef was manually set $thef="abcde" but not when set using the parameter $thef=param('f'); even though they look identical and behave identically for -e
I even tried chomp($thef);
Did you try printing them? Can you post more of the code itself?
also adding
use CGI::Carp qw(fatalsToBrowser);
to the top of your program may prove useful.
update
And then in your code: die unless param('f');
Ted
-- "That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
--Ralph Waldo Emerson