Hence, in your case, it takes the first argument as the FILEHANDLE to write to which it doesnt find. As warnings pragma is not 'use'd, the script silently errors out.
Remember, whitespace is not a list argument seperator in Perl, comma is. (in list context obviously ;) )