help with some coding

  • jameson
  • Born
  • Born
  • No Avatar
  • Joined: Jan 01, 2009
  • Posts: 3
  • Status: Offline

Post January 1st, 2009, 10:40 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 1st, 2009, 10:40 pm

  • alex89
  • Bronze Member
  • Bronze Member
  • User avatar
  • Joined: Jul 18, 2008
  • Posts: 239
  • Loc: Western Australia
  • Status: Offline

Post January 2nd, 2009, 2:34 am

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 166 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.