On this site i hope to get a nice list of usefull scripts and tools so if anyone has a nice script for me... send it to dg1nsw@saturn2.franken.de !
Perhaps your script gets listed here and if you want to get credited, you only have to write in the mail what i should add as your credit.





Actually here are the following sources...

small access-counter (count.pl)
the dish-calculator in perl (dishcalc.pl)
the mail-script in perl (mail.pl)
a source parsing script (src2html.pl)

related links





count.pl

These are a few lines of perl-code to count the times of access to this (or of another) perl script. It reads a file counts the number therin 1 up and writes it back into the file. Every time it is calles it also writes a few lines of HTML and this number to stdout. Since 29.12.1999 it also generates some apache-log compatible output into a separate file about the users that run this script (see yourself).




dishcalc.pl

Here is now the perl-code of the script that calculates the reflection-centrum of a parabolic dish. The rows i used are perhaps a bit inaccurate but very usefull because i did not manage it to use the math-lib in C. It caused just compiletime-errors so i decided to caculate these things by a row-development.
The first row is "tan(m)" and the second "arctan(w)".


The radius-parameter is the distance from the axis to the point of messurement. (see picture)
BOTH coordinates have to be POSITIVE.
The greater the messurements are the more precise the result will be (in most cases i think).




RADIUS in mm:
HEIGHT in mm:




mail.pl

This piece of perl-code is used to send me an email if you type some words in the answer/request box. It opens port 25 of the puretec-smtp-server and after a small handshake transmitts your mail-address and the text. The shit before and after the real text is the SMTP-Protocoll that i looked up in a RFC. I hope the rest of the code is self-explaining.




src2html.pl

Here is now the perl-code of the script with that i parse the source-code to view it with a browser. This causes the CGI-POST-BUTTONs on this page. After the header and a "PRE" and "XMP" statement i just throw out the code. So far it is nice but if there are HTML-Statements in the code like in this case the script is not that usefull because the browser interprets them as normal statements and executes them. :-<

And here is the source code





The first step to pretty good perl development resources !







Or have a look at perl.org ...






This site was last updated 29.12.1999