Commit | Line | Data |
---|---|---|
449aadca LW |
1 | Although supplied with the perl package, the perl scripts in this eg |
2 | directory and its subdirectories are placed in the public domain, and | |
3 | you may do anything with them that you wish. | |
4 | ||
378cc40b LW |
5 | This stuff is supplied on an as-is basis--little attempt has been made to make |
6 | any of it portable. It's mostly here to give you an idea of what perl code | |
7 | looks like, and what tricks and idioms are used. | |
8 | ||
9 | System administrators responsible for many computers will enjoy the items | |
10 | down in the g directory very much. The scan directory contains the beginnings | |
11 | of a system to check on and report various kinds of anomalies. | |
12 | ||
13 | If you machine doesn't support #!, the first thing you'll want to do is | |
14 | replace the #! with a couple of lines that look like this: | |
15 | ||
16 | eval "exec /usr/bin/perl -S $0 $*" | |
17 | if $running_under_some_shell; | |
18 | ||
19 | being sure to include any flags that were on the #! line. A supplied script | |
20 | called "nih" will translate perl scripts in place for you: | |
21 | ||
22 | nih g/g?? |