File: ent

package info (click to toggle)
libhtml-tree-perl 3.11-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 412 kB
  • ctags: 135
  • sloc: perl: 2,786; makefile: 55
file content (11 lines) | stat: -rwxr-xr-x 233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl -w

open(E, "ISOlat1.sgml") || die;

while (<E>) {
    if (/^\s*<!ENTITY\s+(\w+)\s+CDATA\s+\"&\#(\d+);\"\s*--\s*(.*?)\s*-->/) {
        print " $1\t=> '", chr($2), "',  # $3\n";
    } else {
	print STDERR $_;
    }
}