http://www.perlmonks.org?node_id=157373


in reply to Re: How do I write to a file?
in thread How do I write to a file?

#I think you meant either open INPUT, "myfile.txt" or die "Cannot open file: $!"; #or (open INPUT, "myfile.txt") || die "Cannot open file: $!"; #"myfile.txt" || die "Cannot open file: $!" is always true