- or download this
$page = join "", @prep; # since the lines are in an array
if (my ($tag) = $page =~ m/<!--(.+) -->/) {
...
subb; exit;
} # ...etc...
}
- or download this
my $subs = {
a => \&suba,
...
} else {
warn "Unknown tag <$tag> in file <$prepage>\n";
}
- or download this
my $tag;
while (<PAGE>) {
...
}
close <PAGE>;
# proceed to call the tag handler