I've been having problems appending text to a file. I can't figure out
what is going on.
Here is a simple script that illustrates the problem. I have a file
named extractedFiles. (The first character in its name is a space.)
It lives in the directory indicated in this script.
#!/usr/bin/perl
All I can tell you is that it works perfectly here without my setting
any permissions and simply adding the mkdir line to emulate your dir
structure:
#!/usr/bin/perl -w
my $headdir = $ENV{HOME}/Perl/MyPerl/Virus/New Viruses/Headers;
# my $headdir = $ENV{HOME}/Desktop;
`mkdir -p $headdir` ;
On Wednesday, Oct 22, 2003, at 15:25 US/Pacific, Vic Norton wrote:
[..]
my $headdir = $ENV{HOME}/Perl/MyPerl/Virus/New Viruses/Headers;
# my $headdir = $ENV{HOME}/Desktop;
open EXTRACTED, $headdir/ extractedFiles
or die cannot open extractedFiles: $!;
print EXTRACTED
Status Bar.)
Solution. I just copied what I needed to a new extractedFiles
(encoded in Mac Roman). Now I have no problems appending lines.
Regards,
Vic
At 6:25 PM -0400 10/22/03, Vic Norton wrote:
I've been having problems appending text to a file. I can't figure out
what is going on.
Here
At 8:28 pm -0400 22/10/03, Vic Norton wrote:
Solution. I just copied what I needed to a new extractedFiles
(encoded in Mac Roman). Now I have no problems appending lines.
You might do better to write the System's standard utf8. MacRoman is
now a legacy encoding and the sooner it and the rest