empserver/info/ls2html.pl

11 lines
164 B
Perl

#!/usr/local/bin/perl
use strict;
use warnings;
printf("<pre>\n");
while (<>) {
s/([\w\.\-]+)/<a href=\"$1.html\">$1<\/a>/g;
print;
}
printf("</pre>\n");