Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    nice, slow intro


    Good intro! I've taken several tut's on perl and they all seem to figure you have lots of C programming experience behind you, or make you drudge through hours of "web explanation" before getting to some handson examples..

    I'm looking forward to your next installment of perl coding for the average joe :)

    Mike
  2. #2
  3. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: nice, slow intro


    I found it too slow. I only know html and javascript, not C or anything but it was still too slow for me.
  4. #3
  5. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    introduction


    understandable and informative enough even for beginnerss. keep it up.
  6. #4
  7. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Errors?


    Was it just me, or were there errors on this very first example?

    I'm completed new to perl, so it was giving me fits.

    Maybe it was just my browser or something (IE 5.0). It was probably related to html rendering, i never looked at the html source.

    The first line has a space after the #, doesn't that make it a comment? It wouldn't run unless I put the space in.
    The third line, it says ...baby!n")
    shouldn't there be a !/n?

    Poor mistakes like this can really make it difficult for us newbies. But still thanks for the time to write the article.
  8. #5
  9. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Errors?


    yes errors.
    <br>
    <br>
    <br>
    #!/usr/bin/perl
    <br>
    #Perl 101
    <br>
    print ("Groovy, baby!\n")
    <br>

    <br>
    <br>
    would be correct, would think someone writing a tutorial would have the basic "Hello, world!" ("Groovy, baby!" in this case) program down to a science. Yes I agree such a mistake would make things very hard for the newbie.
  10. #6
  11. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Odd errors


    hmmm very odd, the \ was supposed to be in my post, but it was removed in the final posting, weird.
    \
    '\'
    "\"
    (\)
    [\]
    \\\\\\\\\\\\\\\\\\\\\\\

    just checking to see if the ones I put above get taken out or not.
  12. #7
  13. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Odd errors


    Ouch. We got it fixed. Thanks for the heads-up.

    Randy
  14. #8
  15. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    My error


    This is what I tpye and send to my unix sever via FTP in ascii.

    #!/usr/bin/perl
    #This is my first tutorial in perl programming language


    But it gives me this error

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.


    What wrong

    nite
  16. #9
  17. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    The \ in a line.


    On the second page of this article you had the line with "baby!\n". Then on tha pages that follow you had "baby!n".

    What happened to the \
    Which way is right or does it matter?

    Thanks
  18. #10
  19. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    The \ in a line.


    On the second page of this article you had the line with "baby!\n". Then on tha pages that follow you had "baby!n".

    What happened to the \
    Which way is right or does it matter?

    Thanks
  20. #11
  21. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    OOps. Sorry about the double post.


    OOps. Sorry about the double post.
  22. #12
  23. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: The in a line.


    OK the post script is making part of my post disapear. In between "baby" and "n" was supposed to be a "backslash" (the key not the word) which was there on the second page of the article and not on any pages after that.
  24. #13
  25. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: My error


    If you get 'Internal Server Error 500' then there is more then likely a problem in your code. You can debug the problem with typing the folowing.

    <!-- Code -->
    <p><pre><font color=#008000><xmp>
    > /usr/bin/perl myperlscript.pl
    </xmp></font></pre><p>
    <!-- Code -->


    This will give you more information on where the problem is and the error messages are a bit easier to decipher then the internal error. ;)
  26. #14
  27. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Perhaps a bit too much for a newbie...


    I'm trying to create a cgi script/perl program that does the following...


    <!-- Code -->
    <p><pre><font color=#008000><xmp>
    cat /var/log/maillog | grep $username > mail_ustat
    </xmp></font></pre><p>
    <!-- Code -->


    From there I need to open the mail_ustat and display it to the page. I know it has to be something really simple, but aparently I'm missing something. Any ideas?

    tia.
  28. #15
  29. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: My error


    Remember to turn on the warnings. They keep you on the straight and narrow (especially when learning) and help avoid costly mistakes.
    <br>
    <br>
    > /usr/bin/perl -w myperlscript.pl
    <br>
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo