#### this is probably not what you want: open STDERR, "/dev/null"; #### it should be: open STDERR, ">/dev/null";