Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Perl] DoWhile Loop
07-09-2010, 12:27 AM
Post: #1
[Perl] DoWhile Loop
Pretty Self Explanatory
Code:
#!/usr/bin/perl -w



    do{
        print "Enter in A Great Programming forum:\t";
        chomp ($site = <STDIN> );
        if($site ne "pro9ramming.com"){
        print "$site isn't it! Try again\n";    
               }else {
        #no output
        }

        }while ($site ne "pro9ramming.com" );
print "Right!\n";

"Character is determined more by the lack of certain experiences than by those one has had."
Friedrich Nietzsche
Visit this user's website Find all posts by this user
Quote this message in a reply
07-09-2010, 04:49 AM
Post: #2
RE: [Perl] DoWhile Loop
hahahahahahaha.... I like it! Tongue We should spread this algorithm! Tongue Big Grin

Read rules Smile
[Image: legislator.png]
Find all posts by this user
Quote this message in a reply
07-09-2010, 05:57 AM
Post: #3
RE: [Perl] DoWhile Loop
LOL Very good !!! Also you could put "pro9ramming.com" or "www.pro9ramming.com", or just "pro9ramming" !!!
Generally very interesting !!!

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: