in reply to Re^4: Logging deleted files
in thread Logging deleted files

time() returns an integer representation of the number of seconds since the epoch. If you want a string representation of the time, then you would want scalar(localtime(time)).

Your immediate problem is that you did not close the single quote starting the perl command (should be a single quote before the | tee to match the one before the chomp).

Please include <code> and </code> tags around your code and use the preview button to get a look at what other people will see when you post. Code is difficult to read when formatted as HTML.

--MidLifeXis