If a file handle is not specified for output functions, data is sent to STDOUT print "Hello World\n"; This default can be overriden using the select() function open( FILEHANDLE, ">myFile.txt" ); select( FILEHANDLE ); print "Hello World\n"; # Writes to myFile.txt