in reply to crontab and perl script using system
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.use IO::File; IO::File->new(">$ENV{HOME}/.bash_history") or die "Can't empty history +: $!\n";
IO::File is included with the distribution, btw
[ ar0n ]
|
|---|