This is an example program demonstrating how to use the PerlTools
match and substitute methods.
version: @version@
Method Summary
final public static void
main(String args) This program performs the exact same function as this Perl script.
Notice that the Java program is only so much longer because of all
of the I/O exception handling and InputStream creation.
This program performs the exact same function as this Perl script.
Notice that the Java program is only so much longer because of all
of the I/O exception handling and InputStream creation. The core
while loop is EXACTLY the same length as the while loop in the Perl
script. The number of substitutions performed is printed to standard
output as additional information. Note, this is not an efficient way
to do this job; it is better to first read the entire file into a
character array.
This is a simple program that takes a javadoc generated HTML file as
input and produces as output the same HTML file, except with a white
background color for the body.