Monday, 14 January 2013

Perl Notes

Perl Notes


The long Perl handout (Handout #6) by Nick Parlante has the full explanations – these
are just the notes for the Perl section. See http://cslibrary.stanford.edu/108/.
While you are learning Perl, try running it in interactive mode by running
/usr/class/cs193i/bin/interactive.pl and cutting and pasting snippets of Perl onto the
resulting command prompt. To run a statement that you have run before, type ESC then
enter to retrieve a previous statement. If this was not the statement you were looking for,
keep typing ESC then Enter until you find it. Then, press Enter to evaluate the statement.
Currently, you cannot edit a previous statement. Interactive.pl is experimental, and is not
guaranteed to work all the time. However, Perl normally has no interactive mode, so this
tool is good to learn with.


No comments:

Post a Comment