Dear all, As a (reluctant) perl scribe (a whole module on the scribing of Perl at University! Can you believe it!?) I'm having to write some code. I'm not very good at perl (all programming really) at all, have trawlled Google, and have now come on bended-knee to seek wisdom from yourselves.

I am writing a simple search engine for a few pages in Perl/CGI. Can get most of it to work, however - how, oh how, can I extract the information from Meta tags - i.e.

<META NAME="description" CONTENT="An introduction to the basics of Perl scripting.">

I would wish to pull the Content from the above, and output it to my page. In the most simple way possible. I'm a lay-man remember.

I can successfully take what's between the page title tags, chop off the start/ends and print that out, but the Meta tags are proving a little trickier.

I have many problems with my search engine, but if I could get this working, I would be well on the way forward.

If you'd like a look at it in action, please see www.ally.nu (search for "week" to return all - without "s)(mail: me@ally.nu). Many thanks for any help you can offer!

Al.

In reply to Meta tag by No-Lifer

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.