in reply to crontab and perl script using system

I don't like golf that much, but...
use IO::File; IO::File->new(">$ENV{HOME}/.bash_history") or die "Can't empty history +: $!\n";
Since new returns a reference to a filehandle, but because that reference isn't saved, the refcount drops to zero and the file is closed right after opening.

IO::File is included with the distribution, btw

ar0n ]