File: test-SGMLS.pl

package info (click to toggle)
libsgmls-perl 1.03ii-20
  • links: PTS
  • area: main
  • in suites: woody
  • size: 632 kB
  • ctags: 152
  • sloc: perl: 1,557; lisp: 262; makefile: 161
file content (13 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
use SGMLS;

$\ = "\n";

$parse = new SGMLS(STDIN);

while ($event = $parse->next_event) {
    print "Event type: " . $event->type;
    print "Data: " . $event->data;
    print "File: " . $event->file || "[unavailable]";
    print "Line: " . $event->line || "[unavailable]";
    print "";
}