That die is incorrect and easily corrected. However it is making a will4.txt file but it is dying after the htmlheader subroutine. I did find out that if I comment out: print (OUTFILE ("$array\n")); The program works. Is this wrong? I noticed that if I don't save the array with a \n, it treats my original txt file: unknown||Grego John||Barlett unknown||Wilson Pearl||Taylor unknown unknown||McCoy as a continous array like so: unknown||GregoJohn||Barlettunknown||WilsonPearl||Taylorunknownunknown||McCoy Any ideas how I can reinsert the \n when I am reading an array back into an output file? Also sorry I didn't explain this sooner, but I'm new to macperl/perl and am planning on creating a family database so any help would be welcomed. Thanks. alan :) >|I'm ony interested in the unknowns with last names. As you can see, it will >|work at the command line but when I run it through a browser it will only >|print the htmlheader. What am I doing wrong? >| open(OUTFILE,">will4.txt") || die("Cannot open will3.txt"); > >If I had to guess, I'd say this is failing. Remember that when you run a >CGI script, it's running with a different environment and different user >and group ids than when you run it from the command line. So I suspect >whatever user the CGI is running as doesn't have permission to create >will4.txt so the script is dieing. Check your server's error log and you >should see the die text. If not, it's something else. If it isn't the open >failing, you can put warns (or carps if you're so inclined, but my scripts >smell bad enough as is :-)) in your script. Web servers redirect stderr to >the error log, so the text of warns will end up there. > >Brian > > > >===== Want to unsubscribe from this list? >===== Send mail with body "unsubscribe" to macperl-request@macperl.org ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org