PerlIsGood
Programmer
using this code:
Is it possible that this file would be overwritten? I know that the default (above) is to open 'for reading', but I've just had a file accessed from a script using the above syntax get wiped, as if I'd used "> $list" instead.
Could this happen or have I possibly encountered a server hiccup...?
Note: This file is only being accessed from this one script, and is only being accessed at this one point.
Code:
$list = "./blah.dat";
open GEN, $list or die "$!";
Is it possible that this file would be overwritten? I know that the default (above) is to open 'for reading', but I've just had a file accessed from a script using the above syntax get wiped, as if I'd used "> $list" instead.
Could this happen or have I possibly encountered a server hiccup...?
Note: This file is only being accessed from this one script, and is only being accessed at this one point.