...
When open'ing a file use the three argument form of open (open FILEHANDLE, MODE, LEFT ; ) when possible. This will prevent the redirect mode symbol(s) from being misinterpreted as part of the filename. This can be especially important when a user might provide the filename (e.g. in CGI script) and maliciously or unintentionally include a redirct symbol(s) in the filename.
...