in reply to crontab and perl script using system

Some great Perlish ways have already been given above, but at the risk of being a complete heretic:

#!/bin/sh cat /dev/null > ~/.bash_history

I'll go say a dozen Hail Larry's for my transgretion.

Replies are listed 'Best First'.
No, Not Heresy, Laziness!
by gaudior (Pilgrim) on Jul 19, 2001 at 18:20 UTC
    It's never wrong to use the best tool for the job. Remeber, one of the Virtues of being a Programmer is Laziness. It might sound like Heresy, but Perl is not always the best tool for the job. It's often the best, by orders of magnitude, but not always.
    Always keep a song in your heart.
    It's like karaoke for the voices in your head.