Simplicus has asked for the wisdom of the Perl Monks concerning the following question:
I am out on the road, and only have a laptop (w/out Perl) so I can't test this out....
Can I erase the contents of a file this way (I don't want to unlink the file, I just want to "clean it out.":
Simplicus
Can I erase the contents of a file this way (I don't want to unlink the file, I just want to "clean it out.":
Where \004 is ^D?... s/./\004/; ...
Simplicus
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: cleaning out a file
by turnstep (Parson) on Apr 28, 2000 at 01:24 UTC | |
by perlmonkey (Hermit) on Apr 28, 2000 at 02:49 UTC | |
by Anonymous Monk on Apr 28, 2000 at 04:59 UTC | |
RE: cleaning out a file
by Anonymous Monk on Apr 28, 2000 at 11:24 UTC | |
Re: cleaning out a file
by blackwolf (Sexton) on Apr 28, 2000 at 20:50 UTC | |
Re: cleaning out a file
by clash (Novice) on Dec 01, 2000 at 23:53 UTC | |
Re: cleaning out a file
by kirbyk (Friar) on Apr 28, 2000 at 02:38 UTC | |
by turnstep (Parson) on Apr 28, 2000 at 05:32 UTC | |
RE: cleaning out a file
by radixzer0 (Beadle) on Apr 28, 2000 at 02:33 UTC |
Back to
Seekers of Perl Wisdom