in reply to does not write to file anymore
Nothing ever just suddenly stops, there is always a reason. Could your disk be full? Are you writing to a file but $mainpath does not point where you think? Is mainpath a relative path or a full path. Why don't you see what Perl reckons:
use Cwd; open F, ">$mainpath" or die "Open $!\n"; print F "Testing\n" or die "Print $!\n"; close F or die "Close $!\n"; print "CWD: ", cwd(), "\n$mainpath\n"; open F, $mainpath; print while <F>; close F;
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: does not write to file anymore
by BzBeauty (Sexton) on Nov 05, 2004 at 01:03 UTC | |
by tachyon (Chancellor) on Nov 05, 2004 at 01:12 UTC | |
by BzBeauty (Sexton) on Nov 05, 2004 at 01:21 UTC |