#1
  1. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    line 15 on page 7


    You ask for input for choice, but the <STDIN> is missing.
    <br>
    <br>
    Regards,
    <br>
    Steve MacLellan
    <br>
    <br>
    Thought you caught me sleeping, didn't you?
  2. #2
  3. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    the tutorial on-line


    This is exactly what I was looking for...Thanks!
  4. #3
  5. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Keep em coming


    Just what I was looking for
  6. #4
  7. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: line 15 on page 7


    why u were awake?
  8. #5
  9. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    win32 - stdin


    I had to put a ";" after all my <STDIN>'s
    to get it to run (ActiveState build 620 on
    Win 2K).
  10. #6
  11. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Errors on line 5, 10, and 20 on "Decisions, Decisions"


    This guide is great. But for users cutting and pasting the code, they'll receive errors.

    You're missing two <STDIN> tags and one \ in the following example:

    BROKEN:
    Code:
    # ask for a number
    print ("Gimme a number! ");
    $alpha = ;
    chomp ($alpha);
    
    # ask for a different number
    print ("Now gimme a different number! ");
    $beta = ;
    chomp ($beta);
    
    # check
    if ($alpha == $beta)
    	{
    	print("Can't you read, moron?
    I need two *different* numbers!\n");
    	}
    
    print("This is the last line! Go away now!n");
    FIXED
    Code:
    #!/usr/local/bin/perl -w
    
    # ask for a number
    print ("Gimme a number! ");
    $alpha = <STDIN>;
    chomp ($alpha);
    
    # ask for a different number
    print ("Now gimme a different number! ");
    $beta = <STDIN>;
    chomp ($beta);
    
    # check
    if ($alpha == $beta)
            {
            print("Can't you read, moron?
    I need two *different* numbers!\n");
            }
    
    print("This is the last line! Go away now!\n");
  12. #7
  13. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    errors in examples


    This is an interesting site and useful but it would be real nice if the code examples had been proof read. There are far too many typos or important things just simply left out. And since this is a tutorial, pointed at users that dont know how the code should look, it becomes very frustrating to ahve code that doesn't work because of these errors and not know why.
  14. #8
  15. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: the tutorial on-line


    It's a nice site.
    I want you to let me know
    the functionality of the word "my"
    in the below script:
    my $sth = $dbh->prepare("SELECT * FROM pets");
    If I don't use "my", there are no any errors.

    Anyone knows , pleas tell me.
  16. #9
  17. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    I really learn ...


    This is a very useful tutorial - simple but detail enough..
  18. #10
  19. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)
  20. #11
  21. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)
  22. #12
  23. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Perl 101 (Part 2)


    The pdf version of this subject seems to be missing
  24. #13
  25. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Broken link


    There is a broken link to PDF version. Where do I report this?

    TIA
  26. #14
  27. No Profile Picture
    Ducani
    Guest
    Devshed Newbie (0 - 499 posts)

    Perl 101 (Part 2) - Of Variables And Operators


    Perl 101 \(Part 2\) - Of Variables And Operators

    Now that you've got the basics of the language down, this second article in the series teaches you about Perl's variables and operators, and also introduces you to conditional expressions. Click for full article.

    Please discuss this article in this thread. You can read the article here .

IMN logo majestic logo threadwatch logo seochat tools logo