You absolutely can open a file for writing when use strict is on effect. Try the following code to prove it:
#! /usr/bin/perl use strict ; use warnings ; $|++ ; open OUT, '>out.txt' or die "Couldn't open the file: $!" ; print OUT "Hello, World!\n" ; close OUT ; exit ; __END__
Those who know that they are profound strive for clarity. Those who
would like to seem profound to the crowd strive for obscurity.
--Friedrich Nietzsche
In reply to Re: How do you open a file when using strict?
by DamnDirtyApe
in thread How do you open a file when using strict?
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |