Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 25th, 2000, 04:24 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #2  
Old May 29th, 2000, 05:44 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #3  
Old May 30th, 2000, 12:25 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
introduction

understandable and informative enough even for beginnerss. keep it up.

Reply With Quote
  #4  
Old May 30th, 2000, 09:23 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #5  
Old May 31st, 2000, 07:03 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #6  
Old May 31st, 2000, 07:06 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #7  
Old May 31st, 2000, 03:48 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Odd errors

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

Randy

Reply With Quote
  #8  
Old June 8th, 2000, 12:30 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #9  
Old June 16th, 2000, 10:05 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #10  
Old June 16th, 2000, 10:05 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #11  
Old June 16th, 2000, 10:09 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
OOps. Sorry about the double post.

OOps. Sorry about the double post.

Reply With Quote
  #12  
Old June 16th, 2000, 10:11 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #13  
Old June 24th, 2000, 10:50 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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. ;)

Reply With Quote
  #14  
Old June 24th, 2000, 10:57 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #15  
Old June 29th, 2000, 11:01 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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>

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Perl 101 (Part 1) - The Basics

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap