Scripting >> Perl >> How to open files with open()


    open (filehandle, filename)

    where expr = "<filename"  opens a file for reading (default)
                 ">filename"  opens a file for write (creates new)
                 ">>filename" opens a file for appending (preserve)