Tech Support Guy banner
Status
Not open for further replies.
1 - 1 of 1 Posts

·
Registered
Joined
·
77 Posts
Discussion Starter · #1 ·
I realize this is a little off-topic, but I'm getting very frustrated with something. I'm going to throw down a little syntax here and see if you can figure out whats wrong. The script works, as far as I don't get an error message, but it simply doesn't do the following, which basically adds a thread to a list on an html page, like a bulletin board. For copyright issues, this script is partially derived from Matt from Matt's Script Archive.

sub main_page {
open(MAIN,"$imagedir/$galpage") || die $!;
@main = ;
close(MAIN);

open(MAIN,">$imagedir/$galpage") || die $!;
foreach $main_line (@main) {
if ($main_line =~ /
  • /) {
    print MAIN "
    • \n";
      print MAIN "
    • $pictitle\n";
      }
      else {
      print MAIN "$main_line";
      }
      }
      close(MAIN);
      }

      All the variables are properly defined and the sub itself is called properly. Since I don't get an error I'm assuming it does run through the sub, but for some reason doesn't add the HTML to the file.
      Again, this might not be a good question to post here, but you folks have always helped me out with my headaches, however strange they were, and this one is giving me quite a doozy.

      ps) that bullet and link are just generated by the board...it should say the actual HTML in there

      Thanks, DAN
 
1 - 1 of 1 Posts
Status
Not open for further replies.
Top