polycomb has asked for the wisdom of the Perl Monks concerning the following question:
Hello, all:
I run perl, say at C:\, and try open file in other directory:
it did not seem open, what is wrong? Thanks!use strict; use warnings; $in_file="e:/perl/practice/test.txt"; $out_file="e:/perl/practice/testout.txt"; open (OUT, ">$out_file") or die "cannot open $out_file\n"; open (IN, "<$in_file") or die "Can't open file\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: open file that is not in default directory
by Anonyrnous Monk (Hermit) on Jan 15, 2011 at 18:34 UTC | |
by ambrus (Abbot) on Jan 17, 2011 at 10:31 UTC | |
|
Re: open file that is not in default directory
by Jim (Curate) on Jan 16, 2011 at 00:05 UTC | |
by polycomb (Initiate) on Jan 17, 2011 at 17:17 UTC | |
|
Re: open file that is not in default directory
by Khen1950fx (Canon) on Jan 16, 2011 at 03:29 UTC | |
by oko1 (Deacon) on Jan 16, 2011 at 19:33 UTC |