in reply to Self Deletion
Then:
should do the trick*$ENV{'SCRIPT_NAME'} =~ m|(.*)/|; my $dir = "$path_to_web_root/".$1; system('rm','-rf',$dir);
cLive ;-)
PS -for some reason, I'm assuming it's a CGI script.
*I am reasonably drunk, so if I'm wrong, take it with a pinch of salt...
|
|---|