in reply to Overwrite a file (delete a file 2. Revenge of the Sith)
Add a die or dienice to
open (CASEFILE, ">$whichfile");
and try again... ah, and use strict; use warnings; ;-)
Really, you should check the return value for every open and close.
# better: open CASEFILE, '>', $whichfile or die "Can't write '$whichfile': $!\ +n";
Does the perl script run under your user-id?
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Overwrite a file (delete a file 2. Revenge of the Sith)
by peewee_zz (Initiate) on Oct 11, 2006 at 17:37 UTC |