in reply to using unlink to delete files

use autodie
perl -Mautodie -e "unlink(2)" Can't unlink('2'): No such file or directory at -e line 1