help with some coding

  • jameson
  • Born
  • Born
  • jameson
  • Posts: 3

Post 3+ Months Ago

im getting a error code saying its missing a } or] on line 112

Code: [ Select ]
 if($found == 0){
        open(OUTF,">>pages.txt");
        print OUTF "$$link[2]\n";
        close(OUTF);
        print qq~$count. <b>Adding Page:</b> $$link[2]<br>
        ~;
        $count++;
        if($count >= $stopcount){
            print qq~<br><b>Finished!</b>~;
            exit;
        }
    }--------------------------------------= line 112?????
  1.  if($found == 0){
  2.         open(OUTF,">>pages.txt");
  3.         print OUTF "$$link[2]\n";
  4.         close(OUTF);
  5.         print qq~$count. <b>Adding Page:</b> $$link[2]<br>
  6.         ~;
  7.         $count++;
  8.         if($count >= $stopcount){
  9.             print qq~<br><b>Finished!</b>~;
  10.             exit;
  11.         }
  12.     }--------------------------------------= line 112?????


Thanks for your help
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • alex89
  • Bronze Member
  • Bronze Member
  • User avatar
  • Posts: 239
  • Loc: Western Australia

Post 3+ Months Ago

This line here:
Code: [ Select ]
print qq~$count. <b>Adding Page:</b> $$link[2]<br>

and here:
Code: [ Select ]
print qq~<br><b>Finished!</b>~;

Should they have a few extra "'s somewhere?

By the way, PHP?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 111 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.