I was debugging a CGI program (running on an apache server) which would not run. After looking at all the usual suspects, I tried moving a tie stament from the middle of the program to the begining of the program, just after a few declarations and "use DB_File". The program then exectuted just as it should. Here's the statement: $dbobj = tie(@orgs, "DB_File", $file, O_RDWR|O_CREAT, 0666, $DB_RECNO) or die "There's been a nasty, fatal, error.\n Please e-mail papol\@papol.com to report it."; When it was in the middle of the program it was not part of any control structure or similar. I had it in the middle because I didn't want to open @orgs until I had to. My question is why did moving the tie statement make the program run? Is the result an apache thing, or Perl thing, or what exactly? Peter R. Wiley PR/Design -- Research & Communication & Design Services for Public Affairs & Politics 301 South 21st Street Lewisburg, PA 17837-1615 Phone: 570-522-0738 Fax: 570-522-0736 E-Mail: prdesign@sunlink.net ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org