Subject: | Cleaning up temporary directory |
In the process of cleaning up my /tmp/ drectory I found these 8 files
being left over by Config-JSON-1.3.0:
-rw------- 1 sand sand 219 2008-12-08 06:06:35 3fkoxkb6P_
-rw------- 1 sand sand 142 2008-12-08 06:06:35 9QYYxTxaic
-rw------- 1 sand sand 689 2008-12-08 06:06:35 OQeqYmQxKV
-rw------- 1 sand sand 452 2008-12-08 06:06:35 Xy8SMJ6oGk
-rw------- 1 sand sand 396 2008-12-08 06:06:34 BZ0JyhVeHc
-rw------- 1 sand sand 323 2008-12-08 06:06:34 IPHh7HvBVZ
-rw------- 1 sand sand 323 2008-12-08 06:06:34 Sqjyy4SUDE
-rw------- 1 sand sand 508 2008-12-08 06:06:34 ZxB5vsNFDE
I think by using the filehandle directly that File::Temp provides you
could get automatic cleanup. Or if this doesn't fit your needs, you
could explicitly remove the tempfiles when they are not needed anymore.
Thanks,