Help for this page

Select Code to Download


  1. or download this
    use strict;
    open FILE, "<temp.html";
    my @tags = grep /^<.*>$/, <FILE>;
    print @tags;
    
  2. or download this
    use strict;
    open FILE, "<temp.html";
    my (@tags, @text);
    ...
    }
    print "Tags:\n", join "\n", @tags;
    print "\nText:\n", join "\n", @text;