The warning is there to protect you. Don't leave one of the magic filenumbers closed if you expect to open more files, or Bad Things Will Result(TM). Opening a file ("/dev/null" or perhaps File::Spec::Functions::devnull())
is the correct thing to do.