On Oct 17, 2001 at 12:38 -0400, Kirrily Robert took the soap box and proclaimed:
: I told Casey I wanted to do this a while back, and tonight I finally got
: the time for it.  The plan is to put a big notice at the top of perl.pod
: which says "New to Perl?  New to the Perl documentation?  Read perlintro
: FIRST for an overview."

I really like this.  Excelent overview.  If I were a beginner staring
at a Perl program, trying to figure it out.  I woul find this document
useful.  If I were a beginner trying to get a feel for Perl, this
document would be helpful.


Some (mostly useless) nit picks...

: =item Arrays
: 
: An array represents a list of values:
: 
:     my @animals = ("camel", "llama", "owl");
:     my @numbers = (23, 42, 69);
:     my @mixed   = ("camel", 42, 1.23);
: 
: Arrays are zero-indexed.  Here's how you get at elements in an array:
: 
:     print $animals[0];              # prints "camel"
:     print $animals[1];              # prints "llama"
:     print $numbers[$#number];       # last element, prints 1.23

That would print 1.23 if it were

      print $mixed[$#mixed];

Right there you would be getting the number 69.

[snip]
:     if ($email =~ /([^@]+@(.*)/) {

Was that actually to be more like /([^@]+)@(.+)/ ?

:         print "Username is $1\n";
:         print "Hostname is $2\n";
:     }

  Casey West

-- 
Shooting yourself in the foot with Modula-2 
You perform a shooting on what might be currently a foot with what
might be currently a bullet shot by what might currently be a gun. 

Reply via email to