in this code how would i make the word pyrite a link to say google.com ?
print "does your rock have the same metalic luster as gold? yes or no: + \n"; chomp($buck = <STDIN>); if ($sbuck eq 'yes') { print "your rock is pyrite\n"; } else { print "does your rock look like a thin metalic disk? yes or no?:\n"; chomp($buck2 = <STDIN>); if ($buck eq 'yes') { print "your rock is Mica.\n"; } else { print "is your rock purple? yes or no: \n"; } chomp($buck3 = <STDIN>); if ($buck3 eq 'yes') { print "your rock is amethyst.\n"; } else { print "is your rock jet black? yes or no: \n"; } chomp($buck4 = <STDIN>); if ($buck4 eq 'yes') { print "your rock is obsidian. \n"; } else { print "is your rock a translucent green? yes or no: \n"; } chomp($buck5 = <STDIN>); if ($buck5 eq 'yes') { print "your rock is flourite. \n"; } else { print "is your rock white with many green speckles in it? yes or no: \ +n"; } chomp($buck6 = <STDIN>); if ($buck6 eq 'yes') { print "your rock is sandstone. \n"; } else { print "is your rock greyish black with an amber luster? yes or no: \n" +; } chomp($buck7 = <STDIN>); if ($buck7 eq 'yes') { print "your rock is smoky quartz \n";} else { print "is your rock white with a really low hardness? yes or no: \n"; } chomp($buck8 = <STDIN>); if ($buck8 eq 'yes') { print "your rock is talc. \n"; } else { print "is your rock dull green? yes or no: \n"; } chomp($buck9 = <STDIN>); if ($buck9 eq 'yes') { print "your rock is aventurine. \n"; } else { print "is your rock pure white? yes or no: \n"; } chomp($dan = <STDIN>); if ($dan eq 'yes') { print "your rock is talc. \n"; } else { print "is your rock translucent with a pinkish tinge? yes or no:\n"; } chomp($dan2 = <STDIN>); if ($dan2 eq 'yes') { print "your rock is rose quartz. \n"; } else { print "your rock is mica schist.\n"; } } chomp($coolhuh = <STDIN>);

In reply to creating a link by ROB6789

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.