Good Morning All

Help please! I am writing a search result page to display to metatag of documents. My question is simple, all I need to do is figure out which $triplets{"MetaTag_$i\_$j"} of metaTag contents "description" then display in first order, then "posted" displays second order. since each document written different order of metatag info.

let me repeat my question again:
1. documents are content different order of metatag, I'd like to display in the order I want and not based on HTML document itself.
2. in the same time, I'd like to disaply info when data return "description" from $triplets{"MetaTag_$i\_$j"}, same as "posted", and when "description" not exist then displays $triplets{"Summary_$i"}.

for my $j(1,2){ if(exists($triplets{"MetaTag_$i\_$j"})) { $triplets{"MetaTag_$i\_$j"} =~ s/^description=/Summary: /gi; $triplets{"MetaTag_$i\_$j"} =~ s/^posted=/Posted: /gi; print <<END_OF_HTML; <font size=-1 color="#8f8f8f" face=arial,sans-serif>$triplets{"MetaTag +_$i\_$j"}<br></font> END_OF_HTML } } # Display summary (document snippet) if there is one for my $j(1){ if (!exists($triplets{"MetaTag_$i\_$j"})) { print <<END_OF_HTML; <font color="#000000" size="-1" face=arial,sans-serif><b>Summary:</b>$ +triplets{"Summary_$i"}</font><br> END_OF_HTML } }

In reply to return metaTag Info by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.