Class 19 review (07/08/2002)

  1. shift and pop used in PERL. Also, using libraries in PERL. Imitating the CGI.pm PERL module functions in myCGI.lib library.

  2. July 3rd web page should be reviewed.

  3. Click the STOP button on your browser to turn off the animated GIF file paws.gif, if it is distracting.

  4. Frequently Asked Questions: PERL FAQs and common PERL errors to watch for and solve quickly.

perl -e '$s="oh,boy,summer fun,is,here"; @a=split /,/,$s; 
         foreach (@a) { print; print "\n\n"; }'

Try the above command at the cowboy.cns.uni.edu Unix command prompt.

Or type it into pico or Notepad this way:

    $s = "oh,boy,summer fun,is,here"; 
    
    @a = split /,/, $s; 

    foreach (@a) 
    { 
       print; 
       print "\n\n"; 
    }