you have to write to a temp file and then overwrite the original. something like that ...
open(DATABASE1,"</redirections.txt"); ## To Read
open(DATABASE2,">/redirections-temp.txt"); ## To Write
@REDIRECTIONS = <DATABASE1>;
for ($i=0;$i<$#REDIRECTIONS+1;$i++) {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.