![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
open file does not work for externally defined filenameby cristianekw (Novice) |
on Jan 07, 2008 at 20:22 UTC ( [id://660928]=perlquestion: print w/replies, xml ) | Need Help?? |
cristianekw has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a strange problem here.
Using getoptions, I get and store a file name. After some operations, I get this string to append something to this file. Using open command, I can read it, but I canīt write in it.
If I use open(FH,">>$file") it does not work. But it works fine If I use open(FH,">>c:\\logfile.log").
I thought it could be a slash problem, but if I call the program with any number of slash, the problem persists.
Am I making something wrong?
Thanks for any help.
Back to
Seekers of Perl Wisdom
|
|