PERL Working Group
Updated 13 June 2006
A Short Guide to Useful PERL Commands (Under Construction)
Active Perl Version 5.8.8 from
ActiveState.Com.
To run these programs in WINDOZE type:
C:\Perl\bin\Perl -w program.pl
This assumes that you have installed PERL in the above path! I strongly advise you
to use a simple path because PERL is, for all intents and purposes, a
command line language. The "-w" is a UNIX style switch that turns on warnings that you will need
to debug code.
30 May 2006
getmeasure.pl -- Simple Program that goes to
http://pooleandrosenthal.com, grabs the web page measure_ucsd.htm, and writes it to local disk.
getdata.pl -- Simple Program that goes to
ftp://voteview.com/dtaord/, grabs a roll call matrix, and writes it to local disk.
getdatamccain.pl -- Program that goes to
ftp://voteview.com/dtaord/, grabs a roll call matrix, writes it to local disk, and searches for a particular
string and writes the record containing the string to disk.
getmeasure4.pl -- Program that goes to
http://pooleandrosenthal.com, grabs a text file, and writes it to local disk as a web page.
webbuild3.pl -- Program that reads
a text file and turns it into a web page (see documentation in the program)
blurb.txt -- A short text bio to use with the program
To run this program in WINDOZE type:
C:\Perl\bin\Perl -w webbuild3.pl blurb.txt
6 June 2006
PerlTk_Hello.pl -- Simple "Hello World!" GUI Program
that creates a Window and a push button in the Window
getblurbsearch.pl -- Program that goes to
http://pooleandrosenthal.com, grabs a text file, and does a search and replace on the text of the page.
getmeasuresearch.pl -- Program that goes to
http://pooleandrosenthal.com, grabs a web page, and does a search and replace on the text in the page.
getmeasuretags.pl -- Program that goes to
http://pooleandrosenthal.com, grabs a web page, and parses all the tags in the page.
13 June 2006
getridoftags.pl -- Program that goes to
http://pooleandrosenthal.com, grabs a web page, and deletes all the tags in the page and writes it as a text
file.
getmeasureimages.pl -- Program that goes to
http://pooleandrosenthal.com, grabs a web page, processes all the image tags in the page, and writes out their
attributes in a text file.
20 June 2006
getlogfile.pl -- First draft of a program that
parses a WINDOZE NT logfile. It goes to
http://pooleandrosenthal.com, grabs a log file, and parses it for the number of unique IP numbers by web page
hits.
29 June 2006
getdefaultlinks.pl -- A program that
goes to
http://pooleandrosenthal.com, grabs the home page, parses it for the links to other pages,
and then downloads those pages.
getlogfile2.pl -- Second draft of a program that
parses a WINDOZE NT logfile. It goes to
http://pooleandrosenthal.com, grabs a log file, and parses it for the number of unique IP numbers by web page
hits.
13 July 2006
gettable.pl -- A program that
goes to
http://pooleandrosenthal.com, grabs Table.htm, and parses it for the Table displayed by the
HTML code.
20 July 2006
getcensustable.pl -- A program that
goes to the Bureau of the Census, grabs a Table in HTML format, and parses it for the Table.
getcensustablepre.pl -- A program that
goes to the Bureau of the Census, grabs a Table in plain text format, and parses it for the Table (unfinished).
getlogfile2.pl -- A program that
parses an NT log file (partly successful!).