Sep 7 lecture notes -- web perl -- getting started -- * Don't underestimate the power of typing what you want into Google. (e.g. "apple X11 download") * Do look at my notes from last year's perl course for links. See the link in the Resources section of the course web page. * Basic skills and concepts * your own directory on the campus server * remote login (ssh) * command line : ls, cd, man * file permissions : rwx is "read", "write", "eXecute". See "man chmod" * your html/ directory and http://www.marlboro.edu/~username/ * perl executable and a good text editor * unix server (akbar.marlboro.edu, cs.marlboro.edu) * command line $ ssh cs.marlboro.edu OR ssh -X cs.marlboro.edu $ ls $ cd $ whereis perl $ emacs OR xemacs OR vi OR vim OR pico # editors $ vi * mac * Fink is highly recommended. * As is X11 from Apple, and the Developer tools from Apple. * perl should already be installed. * ditto for a unix command line prompt, via Utilities/Terminal * You can get Fink to install emacs, xemacs, ... (Did I mention that it's highly recommended?) * windows * Cygwin is highly recommended. * As is The X11 part, Cygwin.x (x.cygwin.com) * Some basic perl * how to run it * use strict; use warnings; * $scalar $variables : numbers, strings, references, ... * @array @variables : ($any, "old", "stuff", 1, 3 ) * many, many built-in functions * many variations on legal syntax * understandin scalar vs array context is crucial * lots of kinds of quotes and expression matching constructs * common "gotchas" : * semicolon at ends of line * except subroutine definition -- for those who know perl -- * see the alternative assignments * perl objects , references, and all that * install/configure/run an apache web server