But I've never seen that with a perl-file
When I run shell or SQL-scripts on AIX I cannot change or delete the scriptfile wile the program is running. I just checked on Linux and could delete a bash-script while it was running.
I never seen it with perl-files on any OS, since perl-scripts are compiled completely and then started, so once the script is running it is not accessed again.
You could do a "ps -eaf |grep scriptfile.pl to see it shows up somewhere in the process list.
By the way, have you tried "rm -f filename yet ?" |