function_get("getElementsByTagName", sub { #use HTML::TagParser, my @array = $p->getElementsByTagName('@_); #$p must point to # the html file containin the page from which meta tags are # to be taken return @array; }); #### #### #### metas[i].getAttribute('name'); //metas is the array obtained from the above snippet ####