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
In reply to Re^5: Logging deleted files
by MidLifeXis
in thread Logging deleted files
by ppantazis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |