Next | Welcome to my ~/bin | 139 |
The usual header:
#!/usr/bin/perl require 'getopts.pl'; &Getopts('vi:');
$SUFFIX = $opt_i; $CHANGED=0;
$SUFFIX is another one of those features I implemented and then forgot
With -i.foo the modified version of file x is written to x.foo
Otherwise, it is modified in place
We will see the code with the $SUFFIX stuff stripped out
-v is a verbose reporting mode; I'll leave that out too
Next | Menu | Copyright © 2005 M. J. Dominus |