note
toolic
[doc://Tie::File] can also write to the file. Maybe you don't have write permissions. Check the $! variable
<c>
tie my @content, 'Tie::File', $file or die "$file: $!";
</c>
<p>Tip #7 from the [Basic debugging checklist]. Also, it looks strange to chain [doc://-X|file test operators] together like that. It might work, but I don't remember seeing it done that way.
1204905
1204905