How to learn Perl

Can anyone suggest homepage related to perl programming?
Thank you.

Have you tried a basic search?
Here's one:
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=perl\+programming

Thank you so much. I really appeciate it. It has been more than 5 years I have not touch Unix, now I entering the Linux. Now I am trying to refresh and explore again through Linux.

I started my Perl introduction here.

http://archive.ncsa.uiuc.edu/General/Training/PerlIntro/

They make you work on a script which builds up as you go along the turorial.

have you thought to try PERL.COM?

usually starting at the product homepage is the best solution.

Thank you for all your advise. All the suggestions are really helpful. I found that it has some similiarity with C++ language combine with Bash/Korne Shell script.

man perl

If you want some additional hand holding, Learning Perl (the "llama book"). Or, if you are an experienced programmer, Programming Perl (the "camel book").

Here is a downloadable version of Perl tutorial in PDF or HTML.

******
BTW, I get several errors when I try to run perl on my systems. Here is the program.

# cat myprog.pl
#!/usr/contrib/bin/perl

use strict; # important pragma
use warnings; # another pragma
print "What is your username? "; # print out question
my $username; # "declare" a variable
$username = <STDIN>; # ask for a username
chomp($username); # remove "new line"
print "Hello, $username.\n"; # print out the greeting

*** Here are the errors.

# ./myprog.pl
Can't locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1
/opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/lib
/site_perl/5.005 .) at ./myprog.pl line 3.
BEGIN failed--compilation aborted at ./myprog.pl line 3.

*****
Here is my version of PERL.

# perl -v

This is perl, version 4.0

$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
Patch level: 36

Copyright (c) 1989, 1990, 1991, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 4.0 source kit.

:smiley:

My favorite site for perl type info is http://www.perlmonks.com/.

1) update your perl version. use the most current stable 5.8 i believe and your problem is solved.

2) according to your error your version of perl does not have the perl module for strict installed.

you can get perl modules from www.cpan.org very easy to use and navigate after you familurize yourself with the site.

also note that you should use #!/usr/bin/perl -w

when perl is installed it installes the binarys in a few locations and one copy is in /usr/bin. the -w switch is the warnings switch. just a bit easier instead of defineing the use warning; pragma

Thanks Perderabo, it works now. Although I don't need the strict or warning lines, they err out.

My latest version available for HPUX from my internal depot is:

perl B.5.6.1.C Perl Programming Language

here's what I get after loading.
# perl -v

This is perl, version 5.005_02 built for PA-RISC1.1

[hostname]/home/i_am_anti_coolness$perl -v

This is perl, v5.8.0 built for sun4-solaris

I can only assume you checked the actual homepage of perl for the most current stable release?

either way 5.6 i know has the strict.pm (solaris 8 by default ships w/ 5.4 which has strict.

http://www.perl.com/pub/a/language/info/software.html\#stable