On Wednesday, September 24, 2003, at 01:54 PM, Mark Wheeler wrote:
2. And here's the rub for the whole deal, I think (and my lack of
programming skill). When I try to open the file, and it doesn't exist, I get
the error of can't open a file it can't find. BUT I was under the impression
that when I used the "<" or ">" or ">>" in an open command i.e.:
open (DATA, "< example.txt");
that it would creat the file if it wasn't there (with the appropriate
[default?] permissions...at least that's what happens on my other hosts.
Nope. When you open for reading ("<"), it won't be auto-created. It will when you open for writing or appending (">" or ">>").
-Ken