programming-examples/perl/File/To open a file for reading and writing.pl

2 lines
136 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
open(FH, "+<filename"); # Opens "filename" for read, then write.
open(FH, "+>filename"); # Opens "filename" for write, then read.