Visu wrote:
> hi,
>   How can i get the fontface name in a html file? For example in the below
tag
> <font face="Arial">, i want to get Arial in my output.Any pointers are
> welcome.

The following program will check all the <font> tags in a file and print the
value of the 'face' attribute if it has one. The HTML file is specified on
the
command line.

I hope this helps.

Rob


  use strict;
  use warnings;

  use HTML::TokeParser;

  my $parser = HTML::TokeParser->new($ARGV[0]);

  while (my $token = $parser->get_tag('font')) {
    my $face = $token->[1]{face};
    print $face, "\n" if $face;
  }






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to