The default mode is memory, which should be safe for most purposes given that Perl source code files are typically not very large, but the tempfile mode should be considered instead if this is likely to cause out-of-memory errors due to the size of the files, e.g. if the files have very large __DATA__ sections.