in reply to specifying path to files
Also,open(SDATA,"$sdata")|| die("Could not open file: $!\n");
would be sufficient instead ofunlink $scnt;
since you already assigned $scnt to /home/hampton1/data/student_count.dat, unless you care about why unlink didn't remove the file (which is another matter).if (-e "/home/hampton1/data/student_count.dat") { unlink($scnt); }
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: specifying path to files
by jvallee (Initiate) on Oct 23, 2007 at 16:48 UTC |