Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vlion
committed
Mar 5, 2011
1 parent
12c530f
commit cd24289
Showing
4 changed files
with
485 additions
and
931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
open( my $fh, "<", "quicklisp_documentation.txt") or die($!); | ||
use strict; | ||
use warnings; | ||
|
||
my $fh; | ||
|
||
open( $fh, "<", "quicklisp_documentation.txt") or die($!); | ||
my @arr = <$fh>; | ||
close $fh; | ||
|
||
open( $fh, ">", "quicklisp_documentation.html") or die($!); | ||
# Add in some better html conformance | ||
print $fh "<table width=1>"; | ||
print $fh "<html>"; | ||
print $fh "<body>"; | ||
print $fh "<table border=1>"; | ||
foreach my $line (@arr) | ||
{ | ||
my ($name, $packages, $desc) = split(/%%/, $line); | ||
print $fh "<tr><td> $name </td><td> $desc </td></tr>\n"; | ||
} | ||
print $fh "</table>\n"; | ||
print $fh "<body>"; | ||
close $fh; | ||
|
Oops, something went wrong.