Help for this page

Select Code to Download


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