Perl and CGI Examples
Perl CGI:
PhoCho, The Photo Chooser
A little more CGI:
The Flapper: random color generator
Source code of program displaying the
Shell Scripting primer
ShSc.cgi -- The main cgi script.
Gallery.pm -- Gallery.pm library.
Simp.pm -- Simp.pm library, derived from XML::Simple.
Perl programs
Assorted Perl programs follow,
some of which are known to have worked on some
Windows 98, NT, 2000, XP and Vista systems. Some have
worked on Unix systems. Each one worked somewhere.
I believe all are highly
portable. Test a program on your system before you rely on it.
For usage instructions, see commentary within
each program file.
Manifest...
datlib.pm -- utility date and time routines
k2l.pl -- macro substutions into SQL code.
dblspc.pl -- doublespaces a single-spaced text file
despc.pl -- removes excess blank lines from a text file
forx.pl -- spawns an independent process
HowToCreate.pl -- Instructive example of object creation
Tpkg.pm -- for use with HowToCreate.pl
pinger.pl -- ping with specified interval for Windows
prio.pl -- prioritizes a list
sglspc.pl -- singlespaces a double-spaced text file
tgz.pl -- utility for data compression and decompression
timestamp -- writes date and time on stdout as yyyymmdd-hhmmss
unwrap.pl -- inverse of wrap.pl (may contain bug)
wfrq.pl -- counts the frequency of words in a text file
Wds.pm -- package of subroutines called from wfrq.pl
wrap.pl -- wraps text lines (may contain bug)
Excel and VBA Examples
VBA
Macros for charting and general purposes,
and examples of charts (with titles removed).
Click here.
spreadsheets
Examples demonstrating sensitivity analyses,
data presentation, statistical computations,
pivot tables,
financial mathematics and miscellaneous
Excel techniques.
Click here.
SQL Example
A redacted excerpt.
Click here.
Javascript example
Square Root Calculator
Technical Notes
Running Unix commands in a Windows DOS box
If you want Unix commands, including Perl and Ruby, to use on your Windows
system, I suggest you use Cygwin...
http://www.cygwin.com
Cygwin incorporates ActiveState Perl.
Make sure the Cygwin
subdirectory "bin" appears on your Windows PATH. By default,
this is the Windows folder "C:\Cygwin\bin".
Vim
The best vi editor.
My favorite
_vimrc
file settings. Use vim to edit your "C:\Program Files\Vim\_vimrc".
For Perl for Windows, without Cygwin, I had good results with
ActiveState...
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/
In my experience, programs written with ActivePerl port
very easily between Unix and Windows.
Attribution or Citation
You may be constrained by your circumstances in what you can do,
however, you should find a way to mention the name of the author
and either the date of the work or the date that you acquired it.
Use the name of the author: "Daniel Brockman" or "D. Brockman" or similar.
Use the date of the work or the date that you acquired it.
If feasible, use the name of the work.
If feasible, feel free to use a hyperlink to the work or to this website.
Mr. Brockman will be glad to advise you on special situations.
Example 1. Unix Shell Scripts: a Short Course, by Daniel Brockman (2001).
Example 2. ... primer on shell scripts (Daniel Brockman, 2001), which is what you need when ...
Example 3. We learned that "With shell scripts, you can automate repetitive tasks on your Unix system" (D. Brockman, 2001).
Example 4. ... we used a primer by Daniel Brockman (2001) on shell scripts as our study guide.
Example 5. (Daniel Brockman, Unix Shell Scripts: a Short Course, 2001).
Example 6 (with hyperlink). (Daniel Brockman, Unix Shell Scripts: a Short Course, 2001).
Example 7. According to Mr. Brockman (Unix Shell Scripts, 2001), with shell scripts, you can automate repetitive tasks on your Unix system.